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
What is constructor overloading in oop?
There are two base class B1,B2 and there is one class D which is derived from both classes, Explain the flow of calling constructors and destructors when an object of derived class is instantiated.
Why do we need polymorphism in c#?
What is persistence in oop?
What is the difference between a mixin and inheritance?
IS IT NECESSARY TO INITIALIZE VARIABLE? WHAT IF THE INSTANCE VARIABLE IS DECLARED final ? IS IT NECESSARY TO INITIALIZE THE final VARIABLE AT THE TIME OF THEIR DECLARATION?
What are different oops concepts?
What is stream in oop?
Can abstract class have normal methods?
What is overriding in oops?
Why do we use oop?
What is encapsulation example?
Why do while loop is used?
What are functions in oop?
How do you define social class?