What is the Difference between Overriding and overloading?
Answer Posted / sudhakar singh rajput
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 method.
| Is This Answer Correct ? | 51 Yes | 10 No |
Post New Answer View All Answers
Name the class which allows an element to be accessed using unique key?
How do you script this scenario in QTP using VB? Verify XML attributes in XML message against XSD and data mapping of fields to Oracle tables? Verify data in XML to data in a defined table?
What are the different types of applications supported in .net (or) .net framework?
How do you define a read only property in a class module?
What is a preprocessor directive in vb.net?
How would you implement inheritance using vb.net?
What are the difference between structure and class?
What is redim keyword and its use?
what is difference between web.config and machine.config and where it will be ?
how to deploy vb.net with key and evaluation time? any one can help me?
Can you please explain the difference between thread and process?
What is static member?
Which dll is used for microsoft .net run time?
Explain the difference between c# and vb.net?
What is the Advantage of vb.net over vb