Introduction

In the previous lessons, you learned about inheritance and polymorphism. Next, you’ll tackle overriding of methods. Like extending a base class with new properties and methods, you can replace the existing methods with a custom implementation. It comes in handy when your class hierarchy requires “special treatment” for its members.

By the end of the lesson, you will be able to:

  • Explain the purpose of overriding methods.
  • Describe the rules for overriding methods.
  • Identify how to call the superclass implementation.
See forum comments
Download course materials from Github
Previous: Quiz: Leverage Inheritance Next: Instruction