Chapter 3. Class Design in C#
Topics in This Chapter
Defining a Class: The attributes and modifiers included in a class definition influence the behavior and accessibility of the class.
consttype defines fixed values at compilation time.
Fields: A field is typically used to maintain data inside a class.
Properties: A property is the recommended way to expose a class's data.
Methods: The functionality of a class is defined by its methods.
Inheritance: By using inheritance, a class can take advantage of preexisting types.
Constructors: This special purpose method is used to initialize a class.
Events and Delegates: A program's actions are often triggered by events; delegates have the role of invoking methods to handle an event.
Operator Overloading ...