Chapter 2. Types

Types are the places, persons, and things of an application. As part of the object design, scenarios are often drafted as a "day in the life" of a problem domain. The scenarios are mined for nouns, which become potential future classes. Object-oriented programs model real-world problems, in which types represent identities from your problem domain. An employee in a personnel program, a general ledger entry in an accounting package, and geometric shapes in a paint application are examples of types. Types include reference types, value types, and unsafe pointers. The topic of unsafe pointers is included in Chapter 14.

A reference type refers to ...

Get Programming Microsoft® Visual C#® 2005: The Language 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.