Introduction

Heads up... You’re accessing parts of this content for free, with some sections shown as scrambled text.

Heads up... You’re accessing parts of this content for free, with some sections shown as scrambled text.

Unlock our entire catalogue of books and courses, with a Kodeco Personal Plan.

Unlock now

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