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 the difference between read and readline in c#?
What do you mean by a windows process in regards to memory allocation?
Give 2 scenarios where static constructors can be used?
How many types of constructors are there in c#?
Why do we use anonymous method in c#?
What is tuple in c#?
For methods inside the interface why can’t you specify the accessibility modifier?
Is a structure a class?
What is difference between sleep () and wait ()?
How more than one version of an assembly can keep in same place?
Why do we need singleton pattern in c#?
What is callback method in c#?
What is difference between array and collection?
Explain the difference between pass by value and pass by reference.
Write the difference between TypeOf and GetType?