Visual Basic 2005 for Programmers: Deitel Developer Series, Second Edition
by Paul J. Deitel - Deitel & Associates, Inc., Harvey M. Deitel - Deitel & Associates, Inc.
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 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access