Chapter 4. Object-Oriented Programming

Object-oriented programming is a little different from earlier kinds of programming because it introduces programming constructs called objects, which contain both procedures and data. In this chapter we'll begin to understand what objects are and why they make programming easier and less prone to errors.

A procedural program is written in the style you are probably most familiar with: one in which there are arithmetic and logical statements, variables, functions, and subroutines. Data are declared somewhere at the top of a module or a procedure, and more data are passed in and out of various functions and procedures using argument lists.

This style of programming has been successfully utilized for a very long ...

Get Visual Basic Design Patterns: VB 6.0 and VB.NET 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.