What do we have to keep in mind when we write a subclass method?
super()
extends
to itGreat! If we're talking about the constructor, it needs to start with super()
. Regular methods of a superclass can be overridden by rewriting them.
Yikes! If we're talking about the constructor, it needs to start with super()
. Regular methods of a superclass can be overridden by rewriting them.