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 & overriding

Answer Posted / ashish

Overloading is a concept in OOPS where we have a similar
methods of same name but diferent signature.The return type
may be same or different but the signature has to be
different.It is an example of static polymorphism.

Overriding is a conecpt where we have the same method
(signature and return type) both is child class and parent
class. Now why we have the same method ? You will have that
thing happen when you want to add more funtionalities to a
method corresponding to your child class. This is an
example of runtime polymorphism

Is This Answer Correct ?    7 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between read and readline in c#?

929


What do you mean by a windows process in regards to memory allocation?

963


Give 2 scenarios where static constructors can be used?

934


How many types of constructors are there in c#?

983


Why do we use anonymous method in c#?

946


What is tuple in c#?

913


For methods inside the interface why can’t you specify the accessibility modifier?

954


Is a structure a class?

942


What is difference between sleep () and wait ()?

939


How more than one version of an assembly can keep in same place?

975


Why do we need singleton pattern in c#?

959


What is callback method in c#?

940


What is difference between array and collection?

1085


Explain the difference between pass by value and pass by reference.

955


Write the difference between TypeOf and GetType?

1029