
Summary
• VB introduces many changes to the VB dialect:
• Sub and Function call syntax is now the same.
• Option Strict disables evil type coercion.
• The default parameter passing mechanism is by value.
• You can initialize variables (including arrays) when you declare them.
• Most importantly, VB brings true OO development to VB programmers.
• Syntax added for parameterized constructors.
• Several new keywords added to support implementation inheritance.
• VB leverages the FCL (Framework Class Library) to provide features previously not available to VB
programmers:
• Multi-threading provided by the types in the System.Threading namespace.
• Several advanced collection types (hash tables, array lists, queues, etc.) provided by the types in the
System.Collection namespace.
• Runtime errors are now dealt with using structured exception handling.
• Try/Catch/Finally blocks facilitate error handling.
• However the On Error Goto syntax is supported for backwards compatibility.
• VB provides the Class keyword to build a custom class type.
• Classes may define any number of fields, methods or properties.
• Class fields may be defined as Static, Const, or ReadOnly.
• Classes may define several parameterized constructors.
• VB supports inheritance via the Inherits keyword.
• Inheritance models an “Is A” relationship.
• Derived classes inherit the base class functionality as is, or can override the functionality as needed.
• Base classes can define methods as MustOverride.
• Any class containing a MustOverride method class must be marked MustInherit and thus becomes an
abstract class.
• Abstract classes define a polymorphic interface.
• Interfaces allow you to build common behaviors across class hierarchies.
Copyright (c) 2008. Intertech, Inc. All Rights Reserved. This information is to be used exclusively as an
online learning aid. Any attempts to copy, reproduce, or use for training is strictly prohibited.
Summary
Table of Contents
Courseware
Training Resources
Tutorials
Services