Question OOP-POLY-0001
EasyMethod overloading is an example of:
- A.
Compile-time polymorphism
- B.
Run-time polymorphism
- C.
Show answer and explanation
Answer: A
With overloading, the compiler chooses which method to call from the argument types, so it is resolved at compile time. Overriding is run-time polymorphism.