Can you think of a way to access the superclass's sayHi()
method from within its subclass?
Super! Just like super()
calls the superclass constructor, we can access the superclass's sayHi()
method using super.sayHi()
.
Oh noes! Just like super()
calls the superclass constructor, we can access the superclass's sayHi()
method using super.sayHi()
.