Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

what is difference between method overloading & method
overridding with example?

Answer Posted / tamilvanan

overloading:
method overloading means method name is same and different
parameter ie different signature.. and overloading method
are present in same class
for eg ,
let us consider show() is a method
1.show(int a)
2.show(int a,int b)
overriding:
method overriding means method name is same and
parameter also same. these are present in different levels
of class
for eg,
let us consider show() is a method
1.show(int a)
2.show(int a)

Is This Answer Correct ?    34 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why heap memory is called heap?

1096


What is the difference between ArrayList and Vector? which one is better in Java

1193


Difference between final and effectively final ? Why is effectively final even required ?

1053


What is the difference between overriding and overloading in OOPS.

1208


What are controls and their different types in awt?

1144


Which is best ide for java?

1094


What are drawbacks of singleton class?

1016


What are synchronized methods and synchronized statements in java programming?

1071


How does java enable high performance?

1201


What is polymorphism in java? What are the kinds of polymorphism?

1119


How objects are stored in java?

1094


What are the different approaches to implement a function to generate a random number?

1105


What does s mean in regex?

1070


Are arrays passed by reference in java?

961


What is immutable class in java?

1002