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

What is cache coherency? : Dot net architecture

1089


What happens when you try to update data in a dataset in .net while the record is already deleted in sql server as backend?

1030


What are the important principles of soa (service oriented architecture)?

987


What is the purpose of Accordian in jquery? Where it can be used?

2333


what are login controls?

1926


Explain cache? : .NET Architecture

1062


How do I write to the application configuration file at runtime?

1056


Define a managed code? : Dot net architecture

1000


Can you Explain element .net mobile with example? : Microsoft dot net mobile

989


How can we integrate atlas with web services?

994


Explain about developer benefit from memory management?

1001


Explain is development of a mobile web application with asp.net is very easy? : Microsoft dot net mobile

993


Explain some of the disadvantages due to microsoft.net?

1032


What is the application frame host?

986


Explain about httpruntime.cach.get(); method?

1068