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
Can we use this pointer inside static member function?
What does the ios::ate argument do?
Which bit wise operator is suitable for turning off a particular bit in a number?
What is c++ array?
What is the purpose of template?
What does the linker do?
What is the difference between an array and a list?
describe private access specifiers?
what does the following statement mean? int (*a)[4]
What are the advantages of c++? Explain
How would you obtain segment and offset addresses from a far address of a memory location?
How do you declare a set in c++?
What do you mean by vtable and vptr in c++?
Explain what are the sizes and ranges of the basic c++ data types?
why and when we can declar member fuction as a private in the class?