holds a stock number, author, title, price.
8. Complete the following tasks: a. 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. b. Design an application that declares two Book objects and sets and displays their values. c. Design an application that declares an array of 10 Books. Prompt the user for data for each of the Books, and then display all the values. d. DesignaclassnamedTextBookthatisachildclassofBook.Includeanewdata field for the grade level of the book. Add get and set methods for the new field. e. Design an application that instantiates a Book and a TextBook and demonstrates all the methods of each cla
The post holds a stock number, author, title, price appeared first on My Assignment Online.