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

Why is main static in c#?

519


Is string immutable in c#?

576


What is the difference between a class and an object c#?

475


In .Net, what is an assembly? Also explain the type of assembly.

519


Why do we parse in c#?

468






Is c# queue thread safe?

502


What is writeline in c#?

499


What is append in c#?

482


Explain About ADO and its objects

575


What is binding in c#?

491


Constructor to an arbitrary base constructor?

562


Why do we need singleton class in c#?

536


What framework is used for performance testing/load testing?

1482


Is c# front end or back end?

513


Is a valid int value?

479