What is the Difference between Overriding and overloading?
Answer Posted / sanjay
1-OverLoading is Resolved at COMPILE TIME.But Overridding is
resolved at RunTime.
2-OverLoaded Methods Can Change Access specifiers.in
overridding the access level of overridden method(in derived
class) must not be more restrictive than that of overridden
method(of base class)
3-Overloaded methods can declare new exceptions.But
overridden method must not throw new exceptions than those
declared by overridden
| Is This Answer Correct ? | 28 Yes | 9 No |
Post New Answer View All Answers
What is sealed class?
Explain how to achieve polymorphism in vb.net?
Explain the difference between int and int32?
What languages does the .net framework support?
What is the ruby interface generator?
What is an arraylist?
Write a VB.Net console program to check whether a number is perfect or not.
What are the objects in asp.net?
What is the strong name in .net assembly?
Explain an assembly and its use?
What is datatype conversion?
What is different between web.config and machine.config and where it will be ?
Which classes a dll can contain?
What is internal keyword in .net framework?
Described strong typing and weak typing?