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

Are strings mutable in c++?

892


Is it possible to pass an object of the same class in place of object reference to the copy constructor?

783


What is constructor c++?

865


What do the keywords volatile and mean mutable?

797


There are 100 students in a class. The management keep information in two tables. Those two tables are given like Roll no Name Age 001 ABC 15 002 XYZ 14 and Roll No Subject Marks 001 Math 75 001 Physics 55 002 Math 68 001 Hindi 69 They want the information like this Roll No Name Hindi Physics Math Total 001 ABC 69 55 75 199 002 XYZ 68 74 84 226 And Roll No Suject Highest 001 Math 98 007 Physics 84 021 Hindi 74 All 275 All information is kept in structure in main memory. You have to find last two tables.

2746


what is Loop function? What are different types of Loops?

894


What is the basic of c++?

802


What is constructor and destructor in c++?

847


What it is and how it might be called (2 methods).

852


How do I exit turbo c++?

778


What is the most powerful coding language?

818


What is a driver program?

848


Explain the advantages of using friend classes.

833


What is ofstream c++?

819


What is a singleton c++?

773