Data Access, Properties, and Methods


This lecture is about operations in classes and structs. In particular, we are concerned with operations that access the encapsulated data in a type. C# offers several different kinds of operations. Methods are the most well-known, but C# also supports properties, indexers, and overloaded operators.

Table of contents