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 / sandeep mannarakkal
Over loading and overriding , both are performing in the same scope, here both functions have different scope.
So it is NOT overloading ,
NOT over riding.
Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Can a constructor be private?
Can you please explain the difference between overloading and overriding?
List the features of oops in c++?
What are c++ stream classes?
What operators can you overload in c++?
Write a recursive program to calculate factorial in c++.
What is vector string in c++?
Explain unexpected() function?
What is the use of ::(scope resolution operator)?
What is encapsulation in c++ with example?
How does work in c++?
When can I use a forward declaration?
What does iomanip mean in c++?
Why isn't sizeof for a struct equal to the sum of sizeof of each member?
What is stream and its types in c++?