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


Please Help Members By Posting Answers For Below Questions

What is the feature which is common to all .net languages?

473


Using VB, how can you change the Mouse Pointer?

644


Explain the services provided by common language infrastructure.

726


what is common language specification?

523


Explain the observations between vb.net and vc#.net?

532






How to store decimal data in .net?

645


Which is the base class for all the classes in .net framework?

571


Explain private assembly?

513


thak you Mr Govind for replying to my question. My next question is that how to retrieve image stored in an SQL server table and assign it to any image control or picture control using VB.net

1709


Can you please explain the difference between vb and vb.net?

465


Described strong typing

575


What is trace in vb.net?

590


What is the difference between compiler and interpreter?

550


what is difference between web.config and machine.config and where it will be ?

492


What are the different types of applications supported in .net (or) .net framework?

517