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 / adarsh gumashta
Overloading would be possible if class 2 extended class1
but in the case its not there . so neither overloading nor overriding .
http://stackoverflow.com/a/14181786
Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
What is data types c++?
A mXn matrix is given and rows and column are sorted as shown below.Write a function that search a desired entered no in the matrix .with minimum complexity 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
What is difference between rand () and srand ()?
Is c++ an integer?
Can we use this pointer in a class specific, operator-overloading function for new operator?
What are single and multiple inheritances in c++?
Difference between an inspector and a mutator
What is the difference between equal to (==) and assignment operator (=)?
What is the type of 'this' pointer?
What are keywords in c++?
Where is atoi defined?
What operators can you overload in c++?
Can we use pointers in c++?
How do you differentiate between overloading the prefix and postfix increments?
what are function pointers?