...

/

Challenge #1: Override a Method using the Super Keyword

Challenge #1: Override a Method using the Super Keyword

Can you override a method in a derived class with the help of super keyword? A solution is placed in the "solution" section to help you, but we would suggest you try to solve it on your own first.

Problem Statement

When a method in a derived class overrides a method in a base class, it is still possible to call the overridden method using the super keyword.

If you write super.method(), it will call the method that was defined in the superclass. ...