Enter your Sign on user name and password.

Forgot password?
Sign In | Subscribe
Start learning today, and be successful in your academic & professional career. Start Today!
Loading video...
This is a quick preview of the lesson. For full access, please Log In or Sign up.
For more information, please see full course syllabus of Visual Basic
  • Discussion

  • Study Guides

  • Table of Contents

Start Learning Now

Our free lessons will get you started (Adobe Flash® required).
Get immediate access to our entire library.

Sign up for Educator.com

Membership Overview

  • Unlimited access to our entire library of courses.
  • Search and jump to exactly what you want to learn.
  • *Ask questions and get answers from the community and our teachers!
  • Practice questions with step-by-step solutions.
  • Download lesson files for programming and software training practice.
  • Track your course viewing progress.
  • Download lecture slides for taking notes.
  • Learn at your own pace... anytime, anywhere!

Understanding & Creating Classes

  • The main parts of Classes are:
    • Fields
    • Properties
    • Constructors/Destructors
    • Events
    • Methods
  • Fields are hidden from the user of your classes, and can’t be directly modified
  • Properties are directly modifiable by your class’s users
    • They can be ReadOnly or WriteOnly
    • If you only create properties without fields backing them, Visual Basic will create fields for you, but you won’t be able to access them yourself
  • Constructors create instances of your classes, Destructors destroy instances
  • Events aren’t called directly, they are called to handle specific things that happen to your class
  • Methods are called directly to change or work with data from your class
  • You can include a Class in another project by copying it to the new project, or you can create a .dll file and reference it from another project