I have an abstract super class called Document and two child classes called Magazine and Book. What is the difference between :
Document
Magazine
Book
Document book = new Book(); and Book book = new Book();
Document book = new Book();
Book book = new Book();
Thank you in advance.
Aucun commentaire:
Enregistrer un commentaire