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
This content was released on May 22 2024. The official support period is 6-months
from this date.
Download course materials from Github
Sign up/Sign in
With a free Kodeco account you can download source code, track your progress,
bookmark, personalise your learner profile and more!
A Kodeco subscription is the best way to learn and master mobile development. Learn iOS, Swift, Android, Kotlin, Flutter and Dart development and unlock our massive catalog of 50+ books and 4,000+ videos.