Skip to content
Tunely

Object-Oriented Programming Principles study song

Quick answer

Object-oriented programming organises code into objects that bundle data with the methods that act on it. Courses and interviews focus on four pillars: encapsulation, abstraction, inheritance and polymorphism.

The wording of definitions matters, and examiners often ask you to separate look-alike pairs such as overloading and overriding, or an abstract class and an interface. You also get short code snippets and have to say which method runs. Four pillars with paired definitions suit a rock anthem with a hook that names all four, followed by a verse each. Setting the contrasts to a driving beat helps the compile-time versus run-time distinction come back quickly when the question appears.

5 facts to know about object-oriented programming principles

  1. 1The four pillars of OOP are encapsulation, abstraction, inheritance and polymorphism.
  2. 2Encapsulation hides an object's internal state behind access modifiers such as private and exposes it through public methods.
  3. 3Method overloading is resolved at compile time; method overriding is resolved at run time.
  4. 4An abstract class cannot be instantiated and may contain abstract methods that subclasses must implement.
  5. 5The Single Responsibility Principle, the S in SOLID, says a class should have only one reason to change.

Hear what a study song sounds like

Object-Oriented Programming Principles: common questions

What are the key facts about object-oriented programming principles?

The four pillars of OOP are encapsulation, abstraction, inheritance and polymorphism. Encapsulation hides an object's internal state behind access modifiers such as private and exposes it through public methods. Method overloading is resolved at compile time; method overriding is resolved at run time.

How does a song help you remember object-oriented programming principles?

Four pillars with paired definitions suit a rock anthem with a hook that names all four, followed by a verse each. Setting the contrasts to a driving beat helps the compile-time versus run-time distinction come back quickly when the question appears.

Can I make a object-oriented programming principles song from my own computer science notes?

Yes. Paste your notes or upload a PDF, photo or lecture link to Tunely. It pulls out the facts, writes lyrics (a rock style suits this topic) and checks every line against your source before recording a song with synced lyrics. Your first song each month is free.

More computer science songs

Create an account to record your song

Your drafts come with you. Every account gets 1 free song.

Keep the songs coming

You're out of songs. Your lyrics are saved.

Packs are one-time payments. A song that fails is refunded.

Tutor or teacher? Compare all plans