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


Please Help Members By Posting Answers For Below Questions

What is constructor overloading in oop?

868


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.

1712


Why do we need polymorphism in c#?

886


What is persistence in oop?

870


What is the difference between a mixin and inheritance?

752


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?

1818


What are different oops concepts?

780


What is stream in oop?

1049


Can abstract class have normal methods?

798


What is overriding in oops?

831


Why do we use oop?

831


What is encapsulation example?

774


Why do while loop is used?

779


What are functions in oop?

789


How do you define social class?

810