A Brief Introduction

This lesson welcomes you to the world of object-oriented programming.

Procedural programming

If you are here, you are probably already familiar with the basics of programming and have used methods in your programs at some point.

Procedural programming is one programming paradigm among many others.

In procedural programming, a program is divided into smaller parts called methods. These methods are the basic entities used to construct a program. One of the main advantages of procedural programming is code reusability. However, the implementation of a complex real-world scenario becomes a difficult and unwieldy task.

Object-oriented programming

Object-oriented programming, also referred to as OOP, is a programming paradigm that includes, or relies, on the concept of classes and objects.

The basic entities in object-oriented programming are classes and objects.

Programming isn’t much use if you can’t model real-world scenarios using code, right? This is where object-oriented programming comes.

The basic idea of OOP is to divide a sophisticated program into a number of objects that talk to each other.

Objects in a program frequently represent real-world objects.