Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Computer Certification > MCAD > Overload

Reply
Thread Tools

Overload

 
 
Simon
Guest
Posts: n/a
 
      12-09-2003
What does overloading mean ??


 
Reply With Quote
 
 
 
 
Geoff
Guest
Posts: n/a
 
      12-09-2003

It is about having the same method but with different
signatures. You see it with the intellisense all the time.
Example .....

Dim myDataSet as Dataset = New Dataset()

or

Dim myDataSet as Dataset = New Dataset(dataSetName as
string)

This means that you can instanciate the dataset class in
two ways and that the New method has been overloaded.

The New method will have two versions .....

Public Overloads Sub New()

&

Public Overloads Sub New(dataSetName as string)

The CLR takes care of which one to use dependant on which
one your code calls.

Clearish ?



>-----Original Message-----
>What does overloading mean ??
>
>
>.
>

 
Reply With Quote
 
 
 
 
Simon
Guest
Posts: n/a
 
      12-10-2003
cool, thanks!
"Geoff" <(E-Mail Removed)> wrote in message
news:0de301c3be5e$6d765260$(E-Mail Removed)...
>
> It is about having the same method but with different
> signatures. You see it with the intellisense all the time.
> Example .....
>
> Dim myDataSet as Dataset = New Dataset()
>
> or
>
> Dim myDataSet as Dataset = New Dataset(dataSetName as
> string)
>
> This means that you can instanciate the dataset class in
> two ways and that the New method has been overloaded.
>
> The New method will have two versions .....
>
> Public Overloads Sub New()
>
> &
>
> Public Overloads Sub New(dataSetName as string)
>
> The CLR takes care of which one to use dependant on which
> one your code calls.
>
> Clearish ?
>
>
>
> >-----Original Message-----
> >What does overloading mean ??
> >
> >
> >.
> >



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
function overload (not operator overload) Ying-Chieh Liao Perl Misc 3 10-11-2004 11:24 AM
UDP ports using PAT (NAT overload) - Help! Greg Grimes Cisco 8 10-08-2004 05:49 PM
UDP source ports using PAT (NAT overload) Greg Grimes Cisco 3 08-16-2004 10:26 PM
Using multiple outside interface with ip nat overload Emanuel Cisco 1 02-25-2004 08:10 AM
How use the overload of>> (or<<) of a class in the overload of << and >> of another class? Piotre Ugrumov C++ 3 01-25-2004 08:08 PM



Advertisments