InterviewSolution
Saved Bookmarks
| 1. |
What is the difference between overloading and overriding? |
|
Answer» Overloading is a compile-time polymorphism FEATURE in which an entity has MULTIPLE implementations with the same name. For example, METHOD overloading and OPERATOR overloading. Whereas Overriding is a runtime polymorphism feature in which an entity has the same name, but its implementation changes during EXECUTION. For example, Method overriding. |
|