Flashcard Details
OOP
What is the difference between overloading and overriding?
Overloading occurs in a single class with methods of same name but different parameters (compile-time polymorphism). Overriding occurs between parent and child classes, where child redefines a parent method with same signature (runtime polymorphism).
2
1