You are going to rewrite a class called Book
.
It will have the following properties:
title
- a Stringauthor
- a StringPublisher
- a Stringyear
(of publication) - an integerISBN
- a StringAll the properties are private.
The class will have the same three constructors (default, conversion and
copy, and it will have equals()
and
toString()
as well.
It will also have accessors and mutators for all five properties, as well
as a read()
method.
As before, write a separate class with a main()
method which uses the Book
class and
make sure that everything works.