programming

posted by .

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.

Respond to this Question

First Name
School Subject
Your Answer

Similar Questions

  1. Computers

    Create a class named Checkup with fields that hold a patient number, two blood pressure figures (systolic and diastolic), and two cholesterol figures (LDL and HDL). Include methods to get and set each of the fields. Include a method …
  2. programming

    Design a class named Book that holds a stock number, author, title, price, and number of pages for a book. Include a method that sets all the data files and another that prints the values for each data field. Create the class diagram …
  3. C#

    The Peterman Publishing Company has decided that no published book should cost more than 10 cents per page. Create a BookException class whose constructor requires three arguments: a string Book title, a double price and an int number …
  4. Design

    Design a class named StockTransaction that holds a stock symbol (typically one to four characters), stock name, number of shares traded, and price per share. Include methods to set and get the values for each data field. Create the …
  5. pseudocode

    Create a class named Year that contains data fields to hold the number of months in a year and the number of days in a year. Include a constructor that sets the number of months to 12 and the number of days to 365, and get and set …
  6. Programming Logic and Design

    Create a class named Year that contains data fields to hold the number of months in a year and the number of days in a year. Include a constructor that sets the number of months to 12 and the number of days to 365, and get and set …
  7. Programming logic design

    Design a class named DVD that has fields for the DVD category , tittle and price include methods to set and get the value for each field write pseudocode that definnes this class.
  8. Program Design and Development

    Help on Design a class named Book that holds a stock number, author, title, price, and number of pages for a book. Include methods to get and set the values for each data field. Write the pseudocode that defines the class?
  9. Program Design and Development

    Help on Design a class named StockTransaction that holds a stock symbol (typically one to four characters), stock name, number of shares traded, and price per share. Include methods to set and get the values for each data field. Create …
  10. Program Design and Developmen

    Design a class named TextBook that is a child class of Book. Include a new data field for the grade level of the book and get and set methods for the new field. Provide the pseudocode for the TextBook class Very basic pseudo code is …

More Similar Questions