Question:
Explain static vs dynamic polymorphism ?
Author: Lock HuynhAnswer:
Static Polymorphism (Compile-time): Achieved through method overloading or operator overloading; the method to be executed is determined at compile time. Dynamic Polymorphism (Run-time): Achieved through method overriding; the method to be executed is determined at runtime based on the object.
0 / 5 Â (0 ratings)
1 answer(s) in total