5/5 – (1 vote)
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.
Reviews
There are no reviews yet.