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 does new do in c++?
What information can an exception contain?
What is enum class in c++?
Explain terminate() and unexpected() function?
Should you pass exceptions by value or by reference?
Can we use this pointer in a class specific, operator-overloading function for new operator?
What is the keyword auto for?
write a porgram in c++ that reads an integer and print the biggest digit in the number
What is the use of class in c++?
What is a unnitialised pointer?
Can we use pointers in c++?
How are pointers type-cast?
Will rust take over c++?
What do you mean by const correctness?
What is the basic concept of c++?