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 / 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 |
Post New Answer View All Answers
What is ios in c++?
What is friend class in c++ with example?
What are static variables?
Can java be faster than c++?
What does n mean in c++?
Distinguish between new and malloc and delete and free().
Is empty stack c++?
How do you compile the source code with your compiler?
How do you instruct your compiler to print the contents of the intermediate file showing the effects of the preprocessor?
Which function cannot be overloaded c++?
Why are pointers not used in c++?
What is a c++ vector?
What is meaning of in c++?
Explain terminate() and unexpected() function?
When must you use a pointer rather than a reference?