Starting from:

$10

Write a console application with a Book Class

Using C# write a 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.

More products