I\'m following this MOOC on OOP in Java and it has presented an example I don\'t fully understand. In the example, a Book class has been created and they are const
You have to cast your Object-type object to Book, because you want to use getPublishingYear() and getName() functions which are specific to the Book class. The Object class does not have such methods.