Object Oriented Programming (OOP) — Pillars and Advantages: quick revision, 17 bites

All 17 revision bites from this kit, free and with no sign-up.

OOP Bundles Data and Methods Into One Unit

Data and functions finally live together.

OOP is a programming paradigm built on **objects** — units that combine data and methods. This is its defining shift from procedural programming.

Takeaway. OOP's core idea: data and the methods that act on it live together inside an object.

The Six Pillars of OOP

Six pillars hold up every OOP program.

Takeaway. Memorize all six pillars — exams frequently ask you to list and define them.

Class vs Object: Design vs Reality

A blueprint is not a building.

Takeaway. Class = design; Object = the actual thing built from that design.

Encapsulation: Bundle and Protect

Wrap data, guard the doors.

Encapsulation bundles data and methods into a single unit (like a class) and restricts direct access using **access modifiers** (private, protected), exposing functionality only through public getter/setter methods.

Takeaway. Encapsulation = bundling + controlled access, giving security and flexibility.

The Car Pedal Analogy for Encapsulation

You press the pedal, not the engine.

Takeaway. Encapsulation = engine hidden, pedal exposed.

Abstraction: Show What, Hide How

What it does matters, not how.

Abstraction hides complex implementation details and shows only essential features — letting developers focus on **what an object does**, not **how it does it**.

Takeaway. Abstraction simplifies the outside world by hiding the messy inside.

The TV Remote: Abstraction in Action

Press a button, channel changes — magic.

Takeaway. Abstraction = the button you press, not the circuit behind it.

Inheritance: Reuse Through 'Is-A'

Child classes inherit parent powers.

Inheritance lets a new class (derived/child) acquire properties and methods from an existing class (base/parent), promoting **code reusability** and establishing **'is-a' relationships**.

Takeaway. Inheritance = child class inherits parent's properties and methods.

Five Types of Inheritance

Five flavours of inheritance exist.

Takeaway. Know all five inheritance types — a common exam question.

Car and Sports Car: Inheritance Example

Sports car IS-A car.

Takeaway. Child classes inherit shared traits from the parent — no rewriting.

Polymorphism: Many Forms, One Interface

Same call, different behaviours.

Polymorphism means **'many forms'** — expressing various behaviours through the same interface. It is achieved via **method overloading** and **method overriding**.

Takeaway. Polymorphism = one interface, many behaviours, achieved via overloading and overriding.

Animal Sounds: Polymorphism Analogy

Same job, different sounds.

Takeaway. Same action name, different behaviour per object — that's polymorphism.

Encapsulation vs Abstraction

Two pillars, easily confused.

Takeaway. Encapsulation protects data; abstraction hides complexity — related but distinct.

Don't Confuse a Class With an Object

A blueprint is not the building.

Takeaway. Class = blueprint; Object = instance that actually holds data.

Six Advantages of OOP

Why OOP wins in real projects.

Takeaway. OOP's advantages: modular, reusable, maintainable, scalable, secure, less complex.

Exam Pattern: Pillars + Advantages

Two questions almost always appear.

Takeaway. Pillars, advantages, and procedural-vs-OOP comparisons are the highest-yield exam areas.

Remember the Six Pillars: CO-EAIP

Six pillars, one acronym.

Use **CO-EAIP**: **C**lass, **O**bject, **E**ncapsulation, **A**bstraction, **I**nheritance, **P**olymorphism.

Takeaway. CO-EAIP = all six pillars, in order.

Make your own

Your notes can be a kit like these

Every kit here was made from real study material. Point Veda at a chapter, a PDF, a photo or a link and get notes, flashcards, practice MCQs, games and a scored test — free, in 42 languages.

  • Chapter notes
  • Flashcards
  • Practice MCQs
  • Scored tests
  • Exam prep

Get Veda free See what students get

Free to start · No ads · Works in 42 languages