class base
{
public:
int fun(int)
{}
};
class base2
{
public:
int fun(float)
{
}
};
so here qustion is both function either function
overloading or over riding;

Answer Posted / utpal kashyap

Overloading...
Because Function overloading depends upon type of parameters/number of parameters (NOT type of function) passed in function, So this is the example of function overloading.

Is This Answer Correct ?    11 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is c strings syntax?

610


What is a singleton class c++?

544


Why is c++ a mid-level programming language?

593


Describe exception handling concept with an example?

558


What is the purpose of the "delete" operator?

624






What does #define mean in c++?

613


Which c++ operator cannot overload?

549


Write about the members that a derived class can add?

568


What is #include cmath?

659


Explain bubble sorting.

626


What is type of 'this' pointer?

596


What is the difference between an external iterator and an internal iterator?

610


What is an accessor in c++?

618


What is private public protected in c++?

551


What are the uses of typedef in a program?

614