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
What is polymorphism give a real life example?
What is the point of polymorphism?
Why do while loop is used?
What do you mean by overloading?
What are the 3 pillars of oop?
State what is encapsulation and friend function?
What is a superclass in oop?
What is basic concept of oop?
What are the three parts of a simple empty class?
What is the difference between a mixin and inheritance?
What is coupling in oop?
How to call a non virtual function in the derived class by using base class pointer
how to get the oracle certification? send me the answer
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(); }
What is the difference between procedural programming and oops?