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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started