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
If dog is a friend of boy, and terrier derives from dog, is terrier a friend of boy?
What do you understand by zombie objects in c++?
What is difference between class and structure in c++?
Differentiate between a copy constructor and an overloaded assignment operator.
What is #include iostream?
what are the characteristics of Class Members in C++?
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.
What is dev c++ used for?
Is it legal in c++ to overload operator++ so that it decrements a value in your class?
Do class declarations end with a semicolon?
Why do we need templates?
What is this pointer in c++?
Is c++ a software?
What is a vector c++?
What is function declaration in c++ with example?