A:\minispir.GIFA:\minispir.GIF
‹#›
11
Structs vs. Classes
•My personal preference is to use structures for the underlying data
–this has the benefit of grouping various data types together
–the data is accessible directly by the class that uses the underlying data
–and there is little overhead to access the data members (of the name, psu id#, and grade)