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

If dog is a friend of boy, and terrier derives from dog, is terrier a friend of boy?

605


What do you understand by zombie objects in c++?

602


What is difference between class and structure in c++?

609


Differentiate between a copy constructor and an overloaded assignment operator.

635


What is #include iostream?

727






what are the characteristics of Class Members in C++?

586


I want to write a C++ language program that: 1. Reads in the size of a square from the screen; 2. Prints a hollow square of that size out of “-“, “|” and blanks on screen; 3. Prints the same hollow square onto a text file. The program should work for squares of all side sizes between 1 and 20.

2276


What is dev c++ used for?

601


Is it legal in c++ to overload operator++ so that it decrements a value in your class?

603


Do class declarations end with a semicolon?

593


Why do we need templates?

534


What is this pointer in c++?

723


Is c++ a software?

717


What is a vector c++?

545


What is function declaration in c++ with example?

538