Question: java please Assignment #10a - Writing a basic class You are going to write a class called Book. It will have the following properties: -
Assignment \#10a - Writing a basic class You are going to write a class called Book. It will have the following properties: - title - a String - author-a String - Publisher - a String - year (of publication) - an integer - ISBN - a String All the properties are public The class will have: - a default constructor - setting the Strings to a single blank space - a conversion constructor - setting the properties to specified values - a copy constructor setting the properties to those of another object of this class. There will also be two other methods: - equals() - which returns true if the object has the same values as the other object's properties - toString () - returns a string with the object's properties' values Write a separate class with a main() method which uses the Book class
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
