12

Object-Oriented Programming

Object-oriented programming (OOP) is a programming paradigm that organizes code and data into reusable structures called objects. In our previous pieces of code, we could organize code into procedures or functions to allow for code reuse. Objects allow us to reuse code that is both executable but also stores information. In OOP, objects are instances of classes that serve as blueprints or templates for creating objects with similar properties and behaviors.

The fundamental concepts of OOP are as follows:

  • Classes: A class is a blueprint that defines the properties (attributes) and behaviors (methods) that objects of that class will possess. It describes the structure and behavior of objects but doesn’t represent ...

Get Visual Basic Quickstart Guide 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.