Re: difference between method overridding and method over loading
- From: "Kevin Spencer" <spam@xxxxxxx>
- Date: Sun, 15 Oct 2006 08:53:46 -0400
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.
<Ratnakar .N> wrote in message
news:%23tw0eXF8GHA.4408@xxxxxxxxxxxxxxxxxxxxxxx
HELLO,
Please tell me the main difference between method overriding and
method overloading
Thank you
.
- References:
- difference between method overridding and method over loading
- From: Ratnakar . N
- difference between method overridding and method over loading
- Prev by Date: difference between method overridding and method over loading
- Next by Date: Re: Who has it?
- Previous by thread: difference between method overridding and method over loading
- Next by thread: are there any custom data types in .net
- Index(es):
Relevant Pages
|