First page Back Continue Last page Graphics
Polymorphism
One of the big “Object Oriented” capabilities!
Here, you want a method in a derived class to behave differently than in the base class.
Same “name”, different “behaviours” (polymorphism “having many forms”).
Two mechanisms
- redefining base class methods in a derived class.
- using virtual methods