Function and polymorphism
Function and polymorphism
⚫ It is less preferred for complex tasks since all methods and associated
data becomes open during compile time
⚫ Debugging is tedious
⚫
Runtime and compile time polymorphism
⚫ Run time Polymorphism: The compiler resolves the
object at run time( in a memory segment allocated at
runtime) and then decides which function call should
be associated with that object at run time.
⚫ It is also called as dynamic or late binding
polymorphism.
⚫ It is implemented using function overloading or virtual
functions.
⚫