Question: C# assistance please help Write the source code for a C# program (i.e., a separate class) named BookDemo that uses the Book class below and

C# assistance please help

Write the source code for a C# program (i.e., a separate class) named BookDemo that uses the Book class below and does the following in the Main method of BookDemo:

1) Declare local variables for book title and author, and initialize the variables to C# Programming and Farrell 2) Instantiate a Book object using the information from Step 1 3) Print the summary of the book object using the displaySummary() method in the Book class

class Book { private string title; private string author; public Book(string theTitle, string theAuthor) { title = theTitle; author = theAuthor; } public void displaySummary() { WriteLine(title + ", " + author); } } // End class

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!