Object Oriented Programming

What is the difference between method over-riding and overloading ?
And how are these implemented in Python or C++ ??

Hey @gautam75,

Overloading and overriding2
In ‘ overloading ‘ we redefine the overloaded functions with the same function name but, different number and type of parameters. In ‘ overriding ‘ prototype of overridden function is same throughout the program but, function to be overridden is preceded by the keyword ‘virtual’ in the base class and is redefined by the derived class without any keyword. I request you to go through the following links to understand the difference between method over-riding and overloading in a more detailed manner :

overloading Vs over-riding
Implementation using C++

I hope this clears your doubt ! :+1:
Please mark the doubt as resolved in your doubts section ! :smile:
Happy Learning !

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.