Polymorphism
int add(int ,int);
int add(int, int,int);
Member • Sep 4, 2014
Member • Sep 4, 2014
Member • Sep 4, 2014
Member • Sep 5, 2014
see whenever u call a function in memory there is a data structure which is called a stack which is formed in the memory,and in that function u have the local variables which are ur actually arguments and the processing which needs to be done .Harmanveerthen whats the use of functions having same same? I mean why polymorphism? We can define two separate functions.
Is it only for user convenience?
Member • Sep 10, 2014
What you asked is just a very basic form of polymorphism. There's much more to the polymorphic capabilities provided by the OOP, especially C++.Harmanveerthen whats the use of functions having same same? I mean why polymorphism? We can define two separate functions.
Is it only for user convenience?