Java: Creating Book Class (Ex 4-5) – Java OOP, Objects, Classes, Setters, Getters

Share it with your friends Like

Thanks! Share it with your friends!


Java Software Solutions Foundations of Program Design
Java Programming Challenge 4-5: Creating Book Class (Java OOP, Objects, Classes, Setters, Getters)

Java 4-5-Design and implement a class called Book that contains instance data for the title
author, publisher, and copyright date. Define the Book constructor
that accept and initialize this data. Include setters and getters for all instance data.
Include a toString method that returns a nicely formatted, multi-line description
of the book. Create a driver class called Bookshelf whose main method instantiates
and updates several book objects


Write a comment