// Exercise 3.1.3 class Author { String name; int dob; Author(String name, int dob) { this.name = name; this.dob = dob; } } class Book { String title; Author author; double price; int year; Book(String title, Author author, double price, int year) { this.title = title; this.author = author; this.price = price; this.year = year; } } /* class Test{ Author StEx = new Author("StEx", 1918); Author FFFK = new Author("FFFK", 1958); Book b1 = new Book("LPP", StEx, 15.50, 1943); Book b2 = new Book("LTdH", StEx, 10.20, 1940); Book b3 = new Book("HtDP", FFFK, 50.00, 2001); Book b4 = new Book("Robinson Crusoe", new Author("Daniel Defoe", 1750), 15.50, 1790); Book b5 = new Book("Heart of Darkness", new Author("Joseph Conrad", 1878), 12.80, 1902); Book b6 = new Book("Beach Music", new Author("Pat Conroy", 1955), 9.50, 1996); } */