class base
{
public:
int fun(int)
{}
};
class base2
{
public:
int fun(float)
{
}
};
so here qustion is both function either function
overloading or over riding;
Answers were Sorted based on User's Feedback
Answer / utpal kashyap
Overloading...
Because Function overloading depends upon type of parameters/number of parameters (NOT type of function) passed in function, So this is the example of function overloading.
| Is This Answer Correct ? | 11 Yes | 3 No |
Answer / adarsh gumashta
Overloading would be possible if class 2 extended class1
but in the case its not there . so neither overloading nor overriding .
http://stackoverflow.com/a/14181786
| Is This Answer Correct ? | 3 Yes | 0 No |
Answer / 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 |
what is the diff b/n c and c++ a. dynamic scoping b. nested switching c. declaration of variables in any code block d. separation of compilation and linking
What character terminates all character array strings a) b) . c) END
an integer constant must have atleast one a) character b) digit c) decimal point
What is the best way to take screenshots of a window with c++ in windows?
What is the main use of c++?
What is abstraction in c++?
How do you flush std cout?
Write a code/algo to find the frequency of each element in an array?
what is an array
Is empty stack c++?
What is abstract keyword in c++?
What is a sequence in c++?