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 meaning of extention?
What does console writeline do?
Is it possible to nest cfml conditional tags?
What is difference between encapsulation and abstraction in c#?
Can you use all access modifiers for all types?
What is private static in c#?
What is a console in c#?
What are the concepts of dispose method?
Difference between abstract classes and interfaces
Why data types are important in c#?
What is addressof operator?
Enlist the different types of classes in c#?
What does return do in unity?
Is c# easier than javascript?
Why is ienumerable used?