Object-Oriented Programming

noun

say it: “OB-jekt OR-ee-en-tid PROH-gram-ing” /ˈɒbdʒɛkt ˈɔːriɛntɪd ˈproʊɡræmɪŋ/

A way of writing programs as objects that each hold their own data and the actions that use it.

What is Object-Oriented Programming?

Object-oriented programming (OOP) is a way of organizing code around objects: bundles of data plus the actions that work on that data. A BankAccount object holds a balance and knows how to deposit and withdraw. Most popular languages (Java, C#, Python, TypeScript) support it.

var account = new BankAccount("Maria");
account.Deposit(100);
Console.WriteLine(account.Balance); // 100

In a sentence

  • “In object-oriented programming, a Team object keeps its own wins and knows how to add one.”

Level: Novice · More OOP terms at this level

Updated