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.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.17.167.114