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 overloading and overriding with example?

Answer Posted / rajesh r

OVERLOADING MEANS SAME METHOD NAME WITH DIFFERENT
PARAMETERS.
BOTH SHOULD BE DEFINED IN SAME CLASS ITSELF.

OVERRIDING MEANS SAME METHOD NAME WITH SAME PARAMETERS.THIS
CAN ASSOCIATED IN A CLASS AND ITS SUBCLASS.(VIRTUAL,
OVERRIDE)

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why is string buffer better than string ?

1039


Why do you canvas?

986


What are features of java?

976


List implementations of list interface?

987


Which is better stringbuffer or stringbuilder?

870


Which are the two subclasses under exception class?

1001


What are the difference between string, string builder, and string buffer in java?

1070


What is the purpose of format function?

1078


Explain restrictions on using enum?

1009


Name the components that are termed to be Heavy-weight component but available in Light-weight components?

2441


Is a class an object?

941


Can we modify the throws clause of the superclass method while overriding it in the subclass?

993


Can a class have multiple constructors?

960


What is a list in java?

899


What is a predicate method?

957