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 are the assembly entry points?

750


What is normal jit?

792


Explain convert.tostring and i.tostring method?

700


How can we remove handlers at run time?

781


Described strong typing

737


Is it necessary to have SQL server installed in your computer in order to create a service based database in vb.net?

2053


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

676


What is pre-jit?

712


What is the use of internal keyword?

759


Explain how to store decimal data in .net?

914


difference between checkbox vs radiobutton??

2694


What are the objects in asp.net?

784


How does vb.net achieve polymorphism?

715


What is sorting in vb?

667


What is the advantages of VB.NET?

794