Microsoft Visual C# 2012: An Introduction to Object Oriented Programming Chapter
ID: 3764629 • Letter: M
Question
Microsoft Visual C# 2012: An Introduction to Object Oriented Programming
Chapter 10, Q4
4a) Create an application named BookDemo that declares and demonstrates objects in the Book class and its descendents. The book class includes autoimplemented 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. Be sure to use valid and invalid values when testing the child class properties.
Explanation / Answer
text book class