Content Obsolete

This content is no longer current. Our recommendation for up to date content: http://channel9.msdn.com/Series/Visual-Basic-Fundamentals-for-Absolute-Beginners

More about Classes and Methods - 15

Sign in to queue

Description

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

Embed

Download

The Discussion

  • User profile image
    JPSkyPilot

    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 choice...it 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

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

Add Your 2 Cents