/* * ================================================================ * Customer.java: A customer object has an association with a book. * ================================================================ */ public class Customer { // Data attributes private String name; // String representations ... public String toString() { String s = "Customer: " + getName() + "\n"; return s; } // Association attributes public Book book; // Attribute accessors public String getName() { return name; } public void setName(String name) { this.name = name; } // Association accessors public Book getBook() { return book; } public void setBook(Book book) { this.book = book; } }