In Java, most everything is organized into classes. Even the code that creates this b1 object would have to be contained in a class. We'll talk about this more later on.
Class - the definition or description of a book in general. The class defines the contents (instance variables) and behaviour (methods) of books.
Object - a particular book that was made (constructed) using the class definition of a book. One particular book might have the title "Of Mice And Men" and might have 8 copies on the shelf. Another particular book might have the title "Manon Rhéaume's Autobiography" and have 5 copies currently on the shelf.
[ Home | Outline | Announcements | Newsgroup | Assignments | Exams | Lectures | Links ]
© Copyright 2000. All Rights Reserved.