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
Is c++ free?
What is boyce codd normal form in c++?
Suppose that data is an array of 1000 integers. Write a single function call that will sort the 100 elements data [222] through data [321].
Why ctype h is used in c++?
Keyword mean in declaration?
Who was the creator of c++?
What are advantages of c++?
Can we make any program in c++ without using any header file and what is the shortest program in c++.
what is a class? Explain with an example.
You run a shell on unix system. How would you tell which shell are you running?
what are the iterator and generic algorithms.
What is the oldest programming language?
Does std endl flush?
What is == in programming?
What is the function of I/O library in C++ ?