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 data types c++?

536


A mXn matrix is given and rows and column are sorted as shown below.Write a function that search a desired entered no in the matrix .with minimum complexity 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16

3235


What is difference between rand () and srand ()?

585


Is c++ an integer?

568


Can we use this pointer in a class specific, operator-overloading function for new operator?

607






What are single and multiple inheritances in c++?

569


Difference between an inspector and a mutator

760


What is the difference between equal to (==) and assignment operator (=)?

570


What is the type of 'this' pointer?

589


What are keywords in c++?

591


Where is atoi defined?

573


What operators can you overload in c++?

587


Can we use pointers in c++?

602


How do you differentiate between overloading the prefix and postfix increments?

581


what are function pointers?

570