Creating Classes (and more) in C#

Dec 3rd, 2015
Price: $15 USD

Question description

Here is my assignment. I could use help with the coding overall as well as \\ comments that explain the steps throughout. I get confused by the terminology (constructors, object initializers, etc.) in the actual coding and execution even though I understand it fundamentally.

  1. Create a class called Book defines properties Title, Author and Year.  Add a method called Display() that outputs the Title and Author.

  2. Create a class called BookTest that uses an object initializer to create an object of class Book (from step 1) and initialize all of its properties.  Note: you will need to create a constructor method to do this.

Tutor Answer

(Top Tutor) Karim B
School: University of Virginia

Studypool has helped 1,244,100 students

Review from student
" The best tutor out there!!!! "
Ask your homework questions. Receive quality answers!

Type your question here (or upload an image)

1827 tutors are online

Brown University

1271 Tutors

California Institute of Technology

2131 Tutors

Carnegie Mellon University

982 Tutors

Columbia University

1256 Tutors

Dartmouth University

2113 Tutors

Emory University

2279 Tutors

Harvard University

599 Tutors

Massachusetts Institute of Technology

2319 Tutors

New York University

1645 Tutors

Notre Dam University

1911 Tutors

Oklahoma University

2122 Tutors

Pennsylvania State University

932 Tutors

Princeton University

1211 Tutors

Stanford University

983 Tutors

University of California

1282 Tutors

Oxford University

123 Tutors

Yale University

2325 Tutors