[AccessD] Moving to .Net (was Ded Moroz sends you ...)

Michael Bahr jedi at charm.net
Tue Jan 4 12:19:21 CST 2011


Heenan, what you are showing is called overloading.  Same method name but
different parameters and return type.  You typically see this with the
default constructor being overloaded, for example validating the input
values.  The default constructor mearly intializes the private variables
to a default value where an overloaded method actually checks if it is
vaild and throws exceptions if needed.  Overloading can also occur using
inherited methods (from the parent or superclass).

Mike

> When you say that optional parameters are not needed in C# is that because
> you can just write a new method that has the same name but a different
> signature?
>
> Long Foo() // this routine takes no parameters
> Long Foo(Long x) // this routine takes one parameters
>
> ... Etc. etc.
>
> Lambert
>





More information about the AccessD mailing list