We can create our own user-defined types, also known as classes, to model objects of arbitrary complexity, as we discussed in Chapter 3.
We can arrange these types into class hierarchies to take advantage of the inheritance mechanism of OO languages, as we discussed in Chapter 5.
Through encapsulation and information hiding, we can shield client code from changes that we make to the private implementation details of our classes, as well as making objects responsible for ensuring the integrity of their own data, as we discussed in Chapter 4.
Classes can model the most complex of real-world concepts, particularly when we take advantage of collections, as we did when modeling the transcript attribute of the Student class in Chapter 6.
KeywordsBase Class Abstract Method Total Enrollment Method Body Public Class
Unable to display preview. Download preview PDF.