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
fields 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.

We don't do homework. You write code, you post the code, and you ask questions about what you don't understand. Show the work you have done and someone will help you finish it, but don't expect anyone to write it for you.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.