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
How can you link a c++ program to c functions?
What are stacks? Give an example where they are useful.
What are shallow and deep copies?
What is linked list in c++?
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 structure and class in c++.
What is the difference between structures and unions?
Specify different types of decision control statements?
What is polymorphism in c++? Explain with an example?
What are the types of pointer?
How c functions prevents rework and therefore saves the programers time as wel as length of the code ?
Is python written in c or c++?
What is c++ w3school?
What is copy constructor? Can we make copy constructor private in c++?
Is rust better than c++?