October 2008
Beginner to intermediate
680 pages
16h 48m
English
You might recall that when we talked about the fields of the Student class back in Chapter 3, we held off on assigning types to a few of the items shown in Table 6-1.
| Field Name | Data Type |
|---|---|
| name | string |
| studentID | string |
| birthdate | System.DateTime |
| address | string |
| major | string |
| gpa | double |
| advisor | Professor |
| courseLoad | ??? |
| transcript | ??? |
Armed with what we now know about collections, we can go back and assign types to the courseLoad and transcript fields.
The courseLoad field is meant to represent a list of all Course objects that the Student is presently enrolled in. So, it makes perfect sense that this field be declared to be simply a standard collection ...
Read now
Unlock full access