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

10. Overloding and overriding.

Answer Posted / pinki

Overloading methods
1.They appear in the same class or a subclass
2.They have the same name but, have different parameter
lists, and can have different return types.
An example of an overloaded method is print() in the
java.io.PrintStream class

Overriding methods
It allows a subclass to re-define a method it inherits from
it's superclass
overriding methods:
1. It appears in subclasses
2. They have the same name as a superclass method
3. They have the same parameter list as a superclass method
4. They have the same return type as as a superclass method
5. They have the access modifier for the overriding method
may not be more restrictive than the access modifier of the
superclass method

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the difference between l1 and l2 cache? : .NET Architecture

1038


What is the difference between .net mobile pages and ordinary .net web page? : Microsoft dot net mobile

949


Why only boxed types can be unboxed?

1093


4. Wcf- what Asych and Sych call and how that works

1940


can u give me real example of how web.config overrides the machine.config file?

1795


Explain the number or character entered through keyboard gets converted to equivalent ascii code & it get stored on ram in the binary form. What is the exact procedure. : Dot net architecture

960


deference between display and visibility property of CSS

2279


What is .net mobile images control. Explain with an example? : Microsoft dot net mobile

946


Explain cache? : Dot net architecture

994


Explain about cookie less session state? : .NET Architecture

975


Explain what does the term "green architecture" mean? : .NET Architecture

962


Explain the five stages in a dlx pipeline? : .NET Architecture

923


How to improve the cache performance? : Dot net architecture

929


what is tracing? Where it used?

1104


How to improve the cache performance? : .NET Architecture

964