jeudi 11 juin 2015

Difference between two types of a super class instantiation in Java

I have an abstract super class called Document and two child classes called Magazine and Book. What is the difference between :

Document book = new Book(); and Book book = new Book();

Thank you in advance.

Aucun commentaire:

Enregistrer un commentaire