October 2018
Intermediate to advanced
370 pages
9h 15m
English
The main advantage of function-overriding is that each class can provide its own implementation to the inherited function without modifying the superclass. This is helpful when a class has more than one derived classes. If a child class wants to replace the parent's class function with its own implementation, it is free to do that as well as use the implementation of the parent class.
There are few rules of overriding:
Read now
Unlock full access