Creating Classes (and more) in C#

Creating Classes (and more) in C#

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.

"You need a similar assignment done from scratch? Our qualified writers will help you with a guaranteed AI-free & plagiarism-free A+ quality paper, Confidentiality, Timely delivery & Livechat/phone Support.


Discount Code: CIPD30



Click ORDER NOW..

order custom paper