This chapter introduces you to objects and classes. If you are new to object-oriented programming (OOP), you may want to read this chapter carefully because a good understanding of OOP is key to writing quality programs.
This chapter starts by explaining what an object is and what constitutes a class. It then teaches you how to create objects in Visual Basic (VB) using the New keyword, how objects are stored in memory, how classes can be organized into namespaces, how to use access control to achieve encapsulation, and how VB manages unused objects. In addition, method overloading and Shared class members are explained.
When developing an application in an OOP language, you create a model