Properties

Properties are characteristics of a type. For example, the previously shown class Person could have two properties, such as the first name and the last name:

image

Properties in Visual Basic 2010

Visual Basic 2010 introduces a new syntax for properties known as auto-implemented properties. To declare properties you need just the Property keyword without explicitly specifying getters and setters. This is discussed further in Chapter 7.

Get Visual Basic® 2010 Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.