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
What is null c++?
How do you decide which integer type to use?
What is the best c++ book for beginners?
What is the difference between global variables and local variable
What is the difference between object-oriented programming and procedural programming?
What are the 3 levels of programming languages?
What are namespaces in c++?
Why do we need c++?
Are php strings immutable?
What do you mean by translation unit in c++?
What is the difference between method overloading and method overriding in c++?
Mention the ways in which parameterized can be invoked.
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 data encapsulation in C++?
How should a contructor handle a failure?