3.4. Classes
A class is an abstraction describing the common features of all objects in a group of similar objects. For example, a class called Student could be created to describe all Student objects recognized by the SRS.
A class defines the following:
The data structure (names and types of fields) needed to define an object belonging to that class
The operations to be performed by such objects: specifically, what these operations are, how an object belonging to that class is formally called upon to perform them, and what "behind the scenes" things an object has to do to actually carry them out
For example, the Student class might be defined to have the nine fields described in Table 3-1.
Field ... |
---|
Get Beginning C# 2008 Objects: From Concept to Code 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.