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 difference between global variables and local variable
Are iterators pointers?
Is c++ primer good for beginners?
What is ios class in c++?
What are the advantage of using register variables?
What are libraries in c++?
What is the difference between strcpy() and strncpy()?
Can member functions be private?
What c++ is used for?
Explain the difference between new() and malloc() in c++?
What is an undefined behavior and sequence points
Write a code/algo to find the frequency of each element in an array?
Does c++ have arraylist?
What is unary operator? List out the different operators involved in the unary operator.
What are the four main data types?