1.16 Basics of Object-oriented Programming
Now when there are several subclasses implementing a function, it is critical that correct
function of correct derived class needs to be invoked. That is, at run time, correct function has
to be invoked through a function call. The feature that ensures this correct run time binding of
function is called dynamic binding. Polymorphism means to ensure that objects of base class
behave correctly and as planned. For example, CSESTUDENT must use St
udents Work()
and ECESTUDENT must use its own Work() and so on and so forth.
1.6.7 Methods Binding
Inheritance solves the problem of reusability. That is, derived class can access all the data
members and function members of base class that are declared as protected. ...