DevPrep

All topics › Object-oriented programming (OOP)

History of OOP

Junior

Essence

OOP is a paradigm in which a program is described as a set of objects: each one bundles data with behaviour, hides its state and talks to other objects through messages (method calls). The three pillars are encapsulation, inheritance and polymorphism; abstraction is usually added as the fourth.

Key milestones

Why it matters for an iOS developer

Knowing the history explains why two styles coexist in one project: the dynamic ObjC runtime (@objc, selectors, message passing) and static Swift (structs, protocols, generics, compiler specialization). A strong answer stresses that in Swift OOP is just one tool, not the only way to design.

Practice this before your interview

DevPrep turns these answers into one-minute challenges: what does this code print, find the bug, mock interviews. One challenge a day.

Get DevPrep on the App Store