What is method Overloading in the perspective of OOPS?

Answer Posted / md.meraz uddin

The system which have diffrent method in same class or same signature i.e inheritance , polymorphism etc that is called overlaoding.
For example:-
class A
{
public void add(int a, int b);
System.out.println(a+b);
}
public void add(int c,int d,int e);
{
System.out.println(c+d+e);
}

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 the biggest integer?

545


Explain java coding standards for classes or java coding conventions for classes?

612


What is qualitative variable?

520


Is integer a class?

563


Write down program for following scenario. Use java coding standard. You have array list with some words in it..we will call it as dictionary….and you have a arbitrary string containing some chars in it. You have to go through each word of dictionary and find out if that word can be constructed with the help of chars from arbitrary string given. If you find the word print it else print none.

2280






What is the hashcode () and equals () used for?

531


What is contract between hashcode and equal method?

564


What is the difference between math floor and math round?

499


How to handle a web browser resize operation?

539


What is the synonym of procedure?

528


Write a program based on Java script program.

641


What is collection api?

604


What is the preferred size of a component in java programming?

535


What are the advantages of packages in java?

569


What is the main difference between java platform and other platforms?

506