Skip to content

blackmonoceros/fun_with_Java-

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation


We create a Book class with private fields title, author and year of publication.

Then we create an inheriting class Author, which has an additional field author.

We use the constructor of the base class (Book) in the constructor of the derived class (Author).

In the Main class we create an object of the Author class and print

information about the book on the screen using access methods (getters).

About

inheriting classes

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages