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


Please Help Members By Posting Answers For Below Questions

What is ios in c++?

643


What is friend class in c++ with example?

498


What are static variables?

617


Can java be faster than c++?

669


What does n mean in c++?

632






Distinguish between new and malloc and delete and free().

573


Is empty stack c++?

519


How do you compile the source code with your compiler?

615


How do you instruct your compiler to print the contents of the intermediate file showing the effects of the preprocessor?

581


Which function cannot be overloaded c++?

575


Why are pointers not used in c++?

627


What is a c++ vector?

590


What is meaning of in c++?

670


Explain terminate() and unexpected() function?

625


When must you use a pointer rather than a reference?

603