Polymorphism and Virtual Functions Tutorial + Disassembled Proof C and C++ / Functions and Classes
This tutorial teaches you Polymorphism which also includes a disassembled listing of a program using virtual functions thoroughly explained.In the end I explain how the compiler implements polymorphism and so knowledge of Assembly Language will be a great help in understanding Polymorphism.
Polymorphism and Abstraction C and C++ / Functions and Classes
In an inheritance scenario, a parent class is configured to provide its child with the basic foundation the child needs. Although a child can implement a new behavior not available on the parent object, sometimes a child object will need a customized implementation of a behavior that has already been configured with its parent. That is what happens for example when inheriting a sphere from a circle class. Both have a characteristic called Area but the area is calculated differently on each shape.