Question: Using C#, Write an console application with a Book Class that contains: Four private fields: a. string title b. string author c. double price d.

Using C#,

Write an console application with a Book Class that contains:

Four private fields:

a. string title

b. string author

c. double price

d. string isbn

A constructor: public Book(string title, string author, double price, string isbn).

Four public properties with getter/setter for the four fields: Title, Author, Price, and ISBN

A method public string PrintInfomation(), which return the book information in a string with the format of title written by author is price, with ISBN isbn. For example, Pride and Prejudice written by Jane Austen is 5.97 dollars, with ISBN 0141439513.

In the Main method, use the constructor to create an instance of the Book Class, and initialize. Then call PrintInformation method to display the book information.

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!