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
What is session and cookies in c#?
Is a structure a class?
how to print invert pyramid in c#
Is array a collection c#?
What is meant by generics in c#?
What is a predicate in c#?
How do I create a multilanguage?
What are the types of assembly available
Is boxing an implicit conversion?
If I want to override a method one of class A and in class b then how do you declare?
What is out int in c#?
What is the difference between decimal and integer?
What are classes in c#?
What is the importance of closing an ado.net application?
Is java better than c sharp?