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.

2 Years
Discussion Span
Last Post by Ancient Dragon

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.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.