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
Are strings mutable in c++?
Is it possible to pass an object of the same class in place of object reference to the copy constructor?
What is constructor c++?
What do the keywords volatile and mean mutable?
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.
what is Loop function? What are different types of Loops?
What is the basic of c++?
What is constructor and destructor in c++?
What it is and how it might be called (2 methods).
How do I exit turbo c++?
What is the most powerful coding language?
What is a driver program?
Explain the advantages of using friend classes.
What is ofstream c++?
What is a singleton c++?