Yup! Dog
is a subclass of Animal
. A subclass inherits everything from its superclass. In the subclass constructor, we need to call the superclass constructor using super()
.
Using this()
, we'd call the constructor of the Dog
class .. again. How about we call the superclass constructor instead?