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
Why is main static in c#?
Is string immutable in c#?
What is the difference between a class and an object c#?
In .Net, what is an assembly? Also explain the type of assembly.
Why do we parse in c#?
Is c# queue thread safe?
What is writeline in c#?
What is append in c#?
Explain About ADO and its objects
What is binding in c#?
Constructor to an arbitrary base constructor?
Why do we need singleton class in c#?
What framework is used for performance testing/load testing?
Is c# front end or back end?
Is a valid int value?