Professional Documents
Culture Documents
Object Programming Assignment V2
Object Programming Assignment V2
This assignment incorporates object-oriented programming techniques. While you may choose
to add more to your classes, you must have the following at a minimum:
Constructor: accepts and initializes title, author (of type Author as created above), and price
Methods: setTitle, setAuthor, setPrice, getTitle, getAuthor, toString which returns the book’s
details as a String (formatted however you like)
- creates a Book titled “Java Solutions” with author Mo Programs, priced at 34.99
- prints the Book’s string representation to standard output (using System.out.println)