Coffeehouse Post

Single Post Permalink

View Thread: Visual Basic.Net Reference vs Instantiate
  • User profile image
    spivonious

    Dim Joe as Something

    creates this in memory

    Joe ->

    Dim Joe as New Something

    creates this is memory

    Joe -> instance of Something

    Dim Joe as Something
    Dim Fred as New Something
    Joe = Fred

    creates this:

    Joe -> instance of Something <- Fred

    Both references are pointing to the same instance.