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
Briefly describe a B+ tree. What is bulk loading in it?
Can you Mention some Application of C/C++?
What is void pointer in c++ with example?
How we can differentiate between a pre and post increment operators during overloading?
What are the advantages of c++? Explain
What is the type of this pointer in c++?
Define upcasting.
Should you pass exceptions by value or by reference?
What is the use of "new" operator?
Declare a class vehicle and make it an abstract data type.
Difference between struct and class in terms of access modifier.
What is flush () in c++?
How c functions prevents rework and therefore saves the programers time as wel as length of the code ?
Explain the use of virtual destructor?
Why is the function main() special?