Content Archived

This content is no longer current. Our recommendation for up to date content:

More about Classes and Methods - 15

Play More about Classes and Methods - 15
Sign in to queue


In this lesson we dig into more details about Classes -- what exactly happens when you create a new instance of a class? What exactly is a reference to an instance of a class? How is it affected when you pass the reference to a method? We also review overloaded methods, talk about static versus instance methods, constructors and more.

Download the source code for More about Classes and Methods



The Discussion

  • User profile image

    I have tried this lesson and all went well until designing the second "New" method (with the byVal after the "New(...)"... I went back to the module window and typed Dim myOtherCar as New Car... but no drop down box came up to show me that there is more than one thing I can do...when I typed the

    Dim myOtherCar As New Car( ...the intellisense does not show me more than one pops up "New()"...and I'm dead in the water...Am I doing something wrong...or is my visual Basic Express set up wrong?  Thanks

  • User profile image

    @JPSkyPilot:Got it...had something wrong in the second "New" method...sorry

Add Your 2 Cents