In OverLoading concept,Why they are not consider return
value and why they are consider only parameters in method?
For ex: public int Add(int a,int b){...}
public String Add(int a,int b){...}
Answer Posted / brunda r
Because, if at all the return value is same then compiler
should identify the functions by their parameters.
| Is This Answer Correct ? | 0 Yes | 2 No |
Post New Answer View All Answers
What is class encapsulation?
i=20;k=0;
for(j=1;k-i;k+=j<10?4:3)
{
cout< write a program to find 2 power of a 5digit number with out
using big int and exponent ? write string class as your own class in java without using
any built-in function What is the renewal class? Why do we use encapsulation in oops? What is the purpose of polymorphism? 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();
} write a C++ program for booking using constructor and
destructor.
What is abstract class in oops? What are objects in oop? What is the diamond problem in inheritance? Explain the concepts involved in Object Oriented programming. What are the 4 pillars of oop? What does and I oop and sksksk mean?