4.10. Wrap-Up

In this chapter, we presented the basic concepts of classes, objects, methods, instance variables and properties. You learned how to declare instance variables of a class to maintain separate data for each object of the class, and how to declare methods that operate on that data. You called methods and passed arguments to them. We explained the difference between a local variable of a method and an instance variable of a class. You used a class’s constructor to specify the initial values for an object’s instance variables. You saw how UML class diagrams model the constructors, operations, attributes and properties of classes. Finally, we demonstrated how Set accessors in properties can be used to validate an object’s data and ensure ...

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.