Visual Basic 2008 Programming: Business Applications with a Design Perspective
Chapter 1 Chapter 2 Chapter 3 Chapter 4 Chapter 5 Chapter 6 Chapter 7 Chapter 8 Chapter 9
Chapter 10 Chapter 11 Chapter 12 Chapter 13 Chapter 14 Appendix A Appendix B Appendix C Home
Last change: February 13 2016 18:48:19.

 Chapter in PDF

Table of Contents

Chapter 12: Object-Based Programming
Last change: February 13 2016 18:48:25.

12.1 Classes and Objects: Basic Concepts

You have seen and worked with objects such as controls, the stream reader, and ADO.NET. An object consists of code and data that work together as a unit. As a programmer who uses objects, you can think of objects as black boxes because you do not know how they work internally. You do not see any code of these objects. As you are aware, however, objects do have defined behaviors. They provide properties and methods that you can use to perform desired activities. They also recognize events to which you can write code in response. These defined features and behaviors are the interfaces of the object, and are exposed to its outside world (externally). All other code and data of the object are insulated from other programs (kept internally). This arrangement is recognized as encapsulation.
Last change: February 13 2016 18:48:27.
  1. 12.1 Classes and Objects: Basic Concepts
    1. Object and Class Defined
    2. Instance and Static Members
    3. Advantages of Object-Oriented Programming
    4. <<PreviousNext>>