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

What does asterisk mean in c++?

585


Is c++ platform dependent?

632


What is the basic difference between C and C++?

624


What is the difference between structure and class?

558


What are the different types of polymorphism in c++?

589






How one would use switch in a program?

612


What are the vectors in c++?

581


What is an adjust field format flag?

644


Are c and c++ similar?

582


Explain dangling pointer.

678


Can you please explain the difference between using macro and inline functions?

528


Why was c++ created?

552


Is c++ a software?

728


What gives the current position of the put pointer?

561


What are the types of array in c++?

618