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
who is a protected class-level variable available to?
Explain the difference between const and static read-only?
Why is it not a good idea to use empty destructors?
Is static thread safe?
Can mvc be used for desktop applications?
Explain About Assembly in .NET, types of assemblies, their difference, How to register into GAC. How to generate the strong names & its use.
How to block a class from being inherited further?
Can abstract class have parameterized constructor?
How does dictionary work in c#?
How does bitwise work?
Different between method overriding and method overloading?
What's your approach to fetch static data in your windows form application?
What is an array class?
What is interface inheritance?
Compare and contrast between the System.Array.CopyTo() and Clone()?