ITEC 120 LAB 11 Back to Lab index page

Design and implement a class called Textbook which contains instance data for title, author, price, and edition. Define the constructor to accept all this data as parameters. Include getters for all of the instance data, and setters for price and edition. Include a toString method which returns a nicely formatted String containing all of the instance data.

Create a driver whose main method instantiates and updates several Textbook objects, and prints them out to show the objects and the fact they have been updated. (You may send literal values to the contructors in your driver, or read them in from the user, either way.)