difference between method overridding and method overloading

  • Thread starter Thread starter Ratnakar .N
  • Start date Start date
R

Ratnakar .N

HELLO,
Please tell me the main difference between method overriding and method overloading

Thank you
 
Overloading is the technique of defining the same method with different
signatures, such as one version which takes a string as a parameter, another
which takes a string and a bool, and another which takes an integer. This
can be done in the same class, or in an inherited class. Overriding is the
techique of re-defining an inherited method or property with the same
signature, which is already defined with the virtual modifier in a base
class. If the base class method or property is not virtual, it is called
"hiding" rather than "overriding."

--
HTH,

Kevin Spencer
Microsoft MVP
Chicken Salad Shooter
http://unclechutney.blogspot.com

A man, a plan, a canal, a palindrome that has.. oh, never mind.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Back
Top