Here is an object diagram defining the Book object with attributes and operations:
[OBJECT DIAGRAM]
Book: Book
- title: string
- author: string
- pages: int
+ read()
+ turnPage()
+ getTitle(): string
+ getAuthor(): string
This object diagram defines a Book object instantiated from the Book class. The Book object has:
- Private attributes title (string), author (string), and pages (int)
- Public operations read(), turnPage(), getTitle() which returns a string, and getAuthor() which returns a string
The colon (:) separates the object name from the class name. The visibility of each attribute