This is a good time to introduce the class notation that I’ll use throughout the rest of this book. Class notations are a dime a dozen in object-oriented programming books, and I don’t claim that my notation has any special advantages. It does address the specific features of Visual Basic classes in a way that can either show off the methods and properties of a specific class or, at a higher level, indicate relationships between classes. Figure 3-3 shows the diagram for the CDrive class.
Figure 3-3. The CDrive class.
Types are shown for methods and properties in this example, but they might be omitted in later examples. If it’s useful to show private members of a class, they’ll go inside the object box. (This is seldom necessary, however; normally, the public interface is all that matters.)