Is there a relation between function overloading and object orientation in C++?
And if yes, Then what is that relation?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
They are related in the sense that one of the features of most object oriented systems is some sort of polymorphism and overloading also provides a form of polymorphism (specifically a form of ad-hoc polymorphism).
C++ provides polymorphism mostly in three ways:
And it is the fact that each of these features provide some sort of polymorphism that makes them related.