What is OOP?

OOP is a method of structuring programs so that data and the operations on that data are bundled into objects.

An object is a self-contained unit with:

Attributes (also called fields or properties) — the data it stores

Methods — the actions it can perform

Example: In a banking app, an object could be an Account with attributes like balance and methods like deposit() or withdraw().