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 jagged array in vb.net?

635


Explain about visual basic?

546


Explain private assembly?

510


What would you do to remove microsoft visual basic name space?

508


What is the difference between datagrid and gridview?

513






Explain enumerator?

522


List the types of authentication?

531


Explain the advantages of vb.net?

525


What is the maximum size of the textbox?

533


Explain convert.tostring and i.tostring method?

525


Is vb.net a programming language?

534


Explain about globalization?

494


List the different types of assembly?

545


What do you mean by serialization and deserialization?

542


Explain the difference between an xml "fragment" and an xml "document."

500