Chapter 1 deck Chapter 2 deck Chapter 3 deck Chapter 4 deck Chapter 5 deck Chapter 6 deck Chapter 7 deck Chapter 8 deck Chapter 9 deck Chapter 10 deck Chapter 11 deck Chapter 12 deck Chapter 13 deck Chapter 14 deck

What is Object-Oriented Programming?

3 slides · use ←/→ or Space to navigate, F for fullscreen.

Reading view

← Back to the full Chapter 7 deck

What is Object-Oriented Programming?
Fullscreen for presentation · Print / PDF for a handout
1 / 3
Lesson

What is Object-Oriented Programming?

The OOP paradigm and its four pillars.

What is Object-Oriented Programming?

What is Object-Oriented Programming?

A programming paradigm based on objects and classes. OOP organises software around data (objects) rather than functions and logic. In JavaScript, classes provide a clean syntax to define objects with shared behaviour.

PillarMeaning
EncapsulationBundle data and methods into a single class unit.
InheritanceChild classes extend parent class properties/methods.
PolymorphismSame interface, different behaviour per object type.
AbstractionHide complexity; expose only what is necessary.
What is Object-Oriented Programming?

Activity — complete the code

Name the four pillars of object-oriented programming.

// OOP pillars
// : bundle data and methods into one unit
// : child classes extend parent classes
// : same interface, different behaviour
// : hide complexity, expose only what is needed