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 does assert() method do In VB.NET

538


Explain managed code?

532


How to execute VB.NET PROJECTS,VB6.0 PROJECTS AND write their test cases.Need Reply Urgently

2002


Name the class which allows an element to be accessed using unique key?

570


Explain how does the xmlserializer work?

594






Tell me how many .net languages can a single .net dll contain?

525


What are the different types of Lock available in Visual Basic?

633


what is difference between namespace and assembly?

536


Explain namespace?

574


Explain how can we remove handlers at run time?

551


Explain the use of new keyword?

557


Explain the use of console application?

536


What is the differnce between managed code and unmanaged code?

541


Explain about the feature anonymous type?

619


What is the difference between convert.tostring and .tostring() method?

524