Overload

Discussion in 'MCAD' started by Simon, Dec 9, 2003.

  1. Simon

    Simon Guest

    What does overloading mean ??
    Simon, Dec 9, 2003
    #1
    1. Advertising

  2. Simon

    Geoff Guest

    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 ??
    >
    >
    >.
    >
    Geoff, Dec 9, 2003
    #2
    1. Advertising

  3. Simon

    Simon Guest

    cool, thanks!
    "Geoff" <> wrote in message
    news:0de301c3be5e$6d765260$...
    >
    > 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 ??
    > >
    > >
    > >.
    > >
    Simon, Dec 10, 2003
    #3
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Emanuel
    Replies:
    1
    Views:
    11,334
    Geert
    Feb 25, 2004
  2. Greg Grimes
    Replies:
    3
    Views:
    4,096
    Greg Grimes
    Aug 16, 2004
  3. Greg Grimes
    Replies:
    8
    Views:
    1,026
    Rod Dorman
    Oct 8, 2004
  4. jas0n

    Overload

    jas0n, Jun 2, 2005, in forum: Cisco
    Replies:
    4
    Views:
    570
    Walter Roberson
    Jun 3, 2005
  5. Ronald de Leeuw
    Replies:
    2
    Views:
    14,146
Loading...

Share This Page