So I am a student and in the process of learning Java. There is one concept that I am having a difficult time grasping and am hoping that someone could shed some light on t
Any overridden methods in the Lizard class will be used instead of those in the Animal class
Yes, you're right
which classes constructor will be used while creating a?
When you create a subclass, it will implicitly call super class's constructor. Hence, both super class, which is Animal
, and sub class, which is Lizard
, will be used.