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 the use of function pointer?
Why do we use iterators?
What is a syntax in c++?
How long does it take to get good at leetcode?
Can we delete this pointer in c++?
What is rtti in c++?
Can a class be static in c++?
What is null pointer and void pointer?
What is endl?
What is the type of 'this' pointer? When does it get created?
What do the keywords volatile and mean mutable?
In inline " expression passed as argument are evalauated once " while in macro "in some cases expression passed as argument are evaluated more than once " --> i am not getting it plz help to make me understand....
Is c++ a good beginners programming language?
What is stl containers in c++?
What are the comments in c++?