
Lesson 15-2: Classes
392 | Chapter 15
Name __________________________________________ Date _______________________
Section _________________________________________
Exercise 1: Define an ADT that represents a book. How can we represent a book? That is, which
characteristics do all books have? All books have titles and authors. (Yes, some books come out
anonymously, but we ignore that possibility.) Is this enough to uniquely identify each book? No,
there could be more than one book with the same title and author. To uniquely identify each book,
we need to include the ISBN. These three values are the attributes (data fields) of the class.
Exercise 2: