🦆04 - Object Oriented Programming

Object Oriented Programming (OOP)

  • Programming practice to design modular reusable software systems

  • OOP designs programs with creation of Objects

  • An approach that focuses on the definition of data rather than the input → processing → output logic (OOP vs procedure-oriented programming)

  • The goal is to create an object that we can define and provide functionality to solve problems

“OOP focuses on how to manipulate the data of the object rather than the logic required to manipulate them”

Procedural vs OOP

Focuses on

  • Calculations

  • Logical Evaluations

  • Complete Repetitive tasks

  • Databases

Object: A combination of data and functional code. This is because real-world objects have states and behaviour.

States: The characteristic, Measurable data of an object

Behaviour: The available functionality of the object (what can it do?)

Last updated