Create a class named Book that includes auto-implemented properties for the International Standard Book Number (ISBN), title, author, and price. (An ISBN is a unique number assigned to each published...


Create a class named Book that includes auto-implemented properties for the International Standard Book Number (ISBN), title, author, and price. (An ISBN is a unique number assigned to each published book.) Create a child class named TextBook that includes a grade level and a CoffeeTableBook child class that contains no additional fi elds or properties. In the child classes, override the accessor that sets a Book’s price so that TextBooks must be priced between $20.00 and $80.00, inclusive, and CoffeeTableBooks must be priced between $35.00 and $100.00, inclusive. Write a program that creates a few objects of each type and demonstrate that all of the methods and properties work correctly. Be sure to use valid and invalid values when testing the child class properties. Save the fi le as BookDemo.cs.



May 19, 2022
SOLUTION.PDF

Get Answer To This Question

Submit New Assignment

Copy and Paste Your Assignment Here