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 cin clear () in c++?
What do manipulators do?
What is the extension of c++?
Why isn't sizeof for a struct equal to the sum of sizeof of each member?
What are c++ stream classes?
write a function signature with various number of parameters.
What does n mean in c++?
Of the numbers 12 23 9 28 which would be at the top of a properly implemented maxheap a) 28 b) 9 c) Any of them could be
Define anonymous class.
If a round rectangle has straight edges and rounded corners, your roundrect class inherits both from rectangle and from circle, and they in turn both inherit from shape, how many shapes are created when you create a roundrect?
Differentiate between a copy constructor and an overloaded assignment operator.
What is istream and ostream in c++?
How come you find out if a linked-list is a cycle or not?
Why do we use vector in c++?
When the constructor of a base class calls a virtual function, why doesn't the override function of the derived class gets called?