I hv a same function name,arguments in both base class and
dervied class, but the return type is different. Can we call
this as a function overloading? Explain?
Answer Posted / pankaj shinde
No.
for overloading two methods should be in same class
and not in base & derived class
| Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
write a program to find 2^n+1 ?
What are the two different types of polymorphism?
What does and I oop mean?
Where is pseudocode used?
What are the 3 principles of oop?
what is difference between class template and template class?
How is class defined?
What is Difference Between Inheritance and creating object and getting data? means Class A extends B{ B.getMethod();} (OR) Class A{ b obj=new B(); obj.getMethod(); }
Why multiple inheritance is not allowed?
Why is it so that we can have virtual constructors but we cannot have virtual destructors?
write a C++ program for booking using constructor and destructor.
Why we use classes in oop?
Why it is called runtime polymorphism?
Explain the advantages of inheritance.
What is encapsulation with example?