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
explain the reference variable in c++?
What is polymorphism in c++? Explain with an example?
declare an array of structure where the members of the structure are integer variable float variable integer array char variable access all elements of the structure using dot operator and this pointer operator
What does scope resolution operator do?
What are the advantages of c++? Explain
What does it mean to declare a member variable as static?
What are files in c++?
Is there any difference between int [] a and int a [] in c++?
Can circle be called an ellipse?
What is c++ mutable?
Will a C compiler always compile C++ code a) Yes b) No c) Only optimized compilers
What is oop in c++?
What are the advantages of inheritance in c++?
What is the meaning of string in c++?
Perform addition, multiplication, subtraction of 2-D array using Operator Overloading.