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 / ravi kumar noneria

No,
if two functions with same name has either diff no of
argument or same no of arguments but different type is
called function overloading not return type.

Is This Answer Correct ?    5 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is overriding in oop?

539


What is encapsulation in ict?

593


Explain the advantages of inheritance.

662


Prepare me a program for the animation of train

1977


Why do we use polymorphism in oops?

566






Why multiple inheritance is not possible?

588


What is difference between multiple inheritance and multilevel inheritance?

593


What is class in oop with example?

608


What is polymorphism explain its types?

667


What is methods in oop?

531


Can static class have constructor?

576


What is abstract class in oops?

588


What is abstraction in oops?

574


what are the ways in which a constructors can be called?

1570


What do you mean by variable?

565