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
Why c++ does not have finally?
what are Access specifiers in C++ class? What are the types?
What are the two types of comments?
What do you mean by early binding?
What is the real purpose of class – to export data?
What type of question are asked in GE code writing test based on c++ data structures and pointers?
How long it will take to learn c++?
What is the difference between an array and a list?
What is the identity function in c++? How is it useful?
In which situation the program terminates before reaching the breakpoint set by the user at the beginning of the mainq method?
Write a single instruction that will store an EVEN random integer between 54 and 212 inclusive in the variable myran. (NOTE only generate EVEN random numbers)
Explain the isa and hasa class relationships. How would you implement each?
What happens when you make call 'delete this;'?
How do you clear a buffer in c++?
Why would you use pointers in c++?