Thursday
November 27, 2014

Homework Help: programming

Posted by stephanie on Saturday, March 30, 2013 at 2:46pm.

Design a class named Book that holds a stock number,
author, title, price, and number of pages for a book.
Include methods to set and get the values for each data
field. Also include a displayInfo() method that displays
each of the Book’s data fields with explanations.
b. Design a class named TextBook that is a child class of
Book. Include a new data field for the grade level of the
book. Override the Book class displayInfo() method so
that you accommodate the new grade-level field.
c. Design an application that instantiates an object of each
type and demonstrates all the methods.

Answer this Question

First Name:
School Subject:
Answer:

Related Questions

programming - Design a class named Book that holds a stock number, author, title...
Design - Design a class named StockTransaction that holds a stock symbol (...
C# - The Peterman Publishing Company has decided that no published book should ...
Python: Named tuples - I've been trying to print a list of the book titles ...
math - The author of a book was told that he would have to cut the number of ...
C++ Programming - Design and create a class named Stats that has an array of 12 ...
math - The number of pages in tony's book is the quotient of the number of pages...
Python: Creating function - The value of the inventory of a particular book is ...
alg - the thickness of a book is determined by the thickness of its cover and ...
Microeconomics - determining how many to sel - Hi, I would really appreciate it ...

Search
Members