Are you sure you want to delete this flashcard?

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

https://www.geeksforgeeks.org/function-overloading-vs-function-overriding-in-cpp/

1

Cancel