# Object-Oriented Programming (OOP)

> Code built from objects. Each object holds its own data and actions.

**Field:** Software Development  
**Category:** Programming Paradigms  
**Also known as:** OOP, Object Oriented Programming, OO

## Think of it like

Think of it like a toy box of robots. Each robot knows its own name and its own tricks.

## Definition

Object-oriented programming builds programs out of objects. Each object holds its own data and the actions that use it. You write a class once, like a plan for a dog, then make many dogs from it. Objects talk by calling each other's methods. Four big ideas sit at its core: hiding data, sharing code, swapping parts and keeping things simple. Java, C# and Python all use it.

## Example

Jack's game has a Player class. Each of the four players is an object with its own name, score and move method.

## Why it matters

Much of the code in big companies is built this way. Its words show up in every job interview.

## Common mistake

Making a class for each thing, even one small function. Not every idea needs to be an object.

## Three principles

- **Objects hold data.** And the actions that use it.
- **Classes are plans.** Many objects from one class.
- **Four core ideas.** Hide, inherit, swap, simplify.

## Related terms

- [Class](https://learn.benibix.com/term/development/class)
- [Object (Programming)](https://learn.benibix.com/term/development/object)
- [Encapsulation](https://learn.benibix.com/term/development/encapsulation)
- [Functional Programming](https://learn.benibix.com/term/development/functional-programming)

## Told apart from

- [OOP vs Functional Programming](https://learn.benibix.com/compare/oop-vs-functional-programming): Object-oriented code keeps data and actions together in objects. Those objects change over time. Functional code passes data through small functions. They make new values and change nothing.

---

Source: https://learn.benibix.com/term/development/object-oriented-programming
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-17
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
