O'Reilly logo

Start Here!™ Fundamentals of Microsoft® .NET Programming by Rod Stephens

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Properties, Methods, and Events

A class’s data and behaviors are determined by three features: properties, methods, and events. These features allow objects to interact with other parts of the program.

Together, properties, methods, and events are referred to as the class’s members.

Properties

Properties are data values associated with the class. For example, a Person class might have properties such as FirstName, LastName, Street, City, State, and Zip.

Different properties can have different accessibility levels. For example, some properties could be private (available only to code inside the class) and others could be public (available to all the code in the program).

Different languages may provide properties in different ways. The simplest method ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required