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
What is c strings syntax?
What is a singleton class c++?
Why is c++ a mid-level programming language?
Describe exception handling concept with an example?
What is the purpose of the "delete" operator?
What does #define mean in c++?
Which c++ operator cannot overload?
Write about the members that a derived class can add?
What is #include cmath?
Explain bubble sorting.
What is type of 'this' pointer?
What is the difference between an external iterator and an internal iterator?
What is an accessor in c++?
What is private public protected in c++?
What are the uses of typedef in a program?