9.15. Wrap-Up

This chapter investigated the object-oriented programming concepts of classes, objects, methods and instance variables in more depth. The Time class case study presented a complete class declaration consisting of Private data, overloaded constructors for initialization flexibility, properties with Set and Get accessors for manipulating the class’s data, and methods that returned String representations of a Time object in two different formats.

We showed how the Me reference is used implicitly in a class’s non-Shared methods to access the class’s instance variables and non-Shared methods. We also showed how to use the Me reference explicitly to access the class’s shadowed instance variables explicitly.

You learned that a class can ...

Get Visual Basic 2005 for Programmers: Deitel Developer Series, Second Edition 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.