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 Overriding and overloading?

Answer Posted / yugal

OVERLOADING is the process of declaring the methods having
the same name but diff signatures. Signature means diff
types & number of arguments.
OVERRIDING is the process of overwriting the methods of
base class in Derived Class.

Overriding is the example of run-time polymorphism and
Overloading is the example of compile-time polymorphism.
Overloading

1) Method can have different access specifier.
2) Method can have different return type
3) Method must have same name with different method
signatures.
4) It doesn't need inheritance as method should be in
same class.

Overriding->

1) Method must have same access specifier.
2) Method must have same return type.
3) Method must have same name with same method
signatures.
4) It needs inheritance and virtual keyword before it
declaration.
5) It requires non-static method.

Is This Answer Correct ?    27 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is common language specification?

1026


What is the difference between static or dynamic assemblies?

1070


Name some of the features present in vb 2005?

1004


Can you please explain the difference between system.string and system.stringbuilder classes?

1115


what is difference between web.config and machine.config and where it will be ?

985


Explain the advantages of vb.net?

1010


Explain the differences between vb.net and c#, related to oops concepts?

988


What is the use of internal keyword?

1034


Explain strong name in .net assembly?

1037


What are the objects in asp.net?

1198


how to get dynamic control array position or its index position?

2583


Can you please explain the difference between thread and process?

1031


What is tracing?

1206


Can you please explain the difference between int and int32?

1152


What is the significance of delegates. Where should they be used? What are the situations where we require them?

1023