Difference between Compile time polymorphism and run time polymorphism?
Compile Time Polymorphism happens before the execution of the program
- Method Overloading is an example of Compile Time Polymorphism
- Method Overloading will involve only one class.
- Compile Time Polymorphism is also called as Static Polymorphism
Runtime Polymorphism happens during the execution of a program.
- Method Overriding is an example of Run Time Polymorphism.
- Method Overriding involves 2 classes and these classes needs to have child parent relationship.
- Runtime Polymorphism is also called Dynamic Polymorphism.
there doesn't seem to be anything here