Polymorphism has two types in C++:
1. Compile time polymorphism
2. Runtime Polymorphism
Operator overloading and Function Overloading are the examples for compile time polymorphism.
Using Virtual Functions we will achieve run time polymorphism.
1. Compile time polymorphism
2. Runtime Polymorphism
Operator overloading and Function Overloading are the examples for compile time polymorphism.
Using Virtual Functions we will achieve run time polymorphism.
Comments
Post a Comment
https://gengwg.blogspot.com/