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 the difference between overloading and overriding a
function?

Answer Posted / raj kashyap

OVERLOADING is possible to create methods that have the same
name, but different parameters lists and different
definitions.overloading is used when objects are required to
perform similar task but using different parameters.



OVERRIDING is used when we want an object to respond to the
same method but have different behaviour when that method is
called. that means we override the method defined in super
class.yhis is possible by defining a method in subclass that
has same name,same argument& same return typeas method in
super class.

Is This Answer Correct ?    12 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can we increase size of array?

1031


State the merge-sort principle and its time complexity.

980


Discuss about garbage collector in Java.

1081


Which method cannot be overridden in java?

998


What is java util hashmap?

990


What is the purpose of static methods and static variables?

1073


How does linkedlist work in java?

934


Why we used break and continue statement in java?

1151


List some java keywords sun like c, c + + keywords?

1005


Is void a return type?

972


Is there any difference between nested classes and inner classes?

1100


What is the purpose of lambda expressions?

1061


What are the steps in the jdbc connection?

1026


What is arguments in java?

1008


Explain the importance of throws keyword in java?

999