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


Please Help Members By Posting Answers For Below Questions

Can a constructor be private?

802


Can you please explain the difference between overloading and overriding?

810


List the features of oops in c++?

762


What are c++ stream classes?

772


What operators can you overload in c++?

765


Write a recursive program to calculate factorial in c++.

810


What is vector string in c++?

793


Explain unexpected() function?

807


What is the use of ::(scope resolution operator)?

833


What is encapsulation in c++ with example?

751


How does work in c++?

817


When can I use a forward declaration?

805


What does iomanip mean in c++?

858


Why isn't sizeof for a struct equal to the sum of sizeof of each member?

738


What is stream and its types in c++?

759