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...

Difference between overloading and Overriding. <Giving a
confusing example to test the concept.>
(also asked in PA Consultancy Group,iflex,Value
chain,IBM,CTS,Accenture, Tarang>

Answer Posted / esha prasad

Over loading is polymorphism implementation in same class,
where two or more methods can share same name differing in
parameters passed.
Overriding is polymorphism implementation in different
classes having parent child relationship and the
funtionality in parent class is over shadowed by the
funtionality in subclass.

Is This Answer Correct ?    72 Yes 14 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is age discrete or continuous?

1189


What are void pointers?

1363


What is set in java?

1097


Why java is object oriented?

1078


How to sort array of 0 and 1 in java?

997


Which of the classes will have more memory allocated?

1018


Explain which of the following methods releases the lock when yield(), join(),sleep(),wait(),notify(), notifyall() methods are executed?

1162


What is static keyword?

1241


What are the different conditional statements?

1046


Why synchronization is important in java?

1079


Why singleton pattern is better than creating singleton class with static instance?

1051


When the constructor of a class is invoked?

1088


When should a function throw an exception?

1100


What is the generic class?

1013


Differentiate between class and structure.

1178