How to explain object-oriented programming concepts to a 6-year-old

Alexander Petkov
Jun 27, 2018 · 7 min read
How an entry-level developer looks like after nailing this question!

Encapsulation

You can feed the cat. But you can’t directly change how hungry the cat is.

Abstraction

Cell phones are complex. But using them is simple.

Inheritance

A private teacher is a type of teacher. And any teacher is a type of Person.

Polymorphism

Triangle, Circle, and Rectangle now can be used in the same collection

What’s next?

Did you like the read? Medium doesn’t offer partner program in my country―so I ask people to buy me coffee instead.

freeCodeCamp.org

This is no longer updated. Go to https://freecodecamp.org/news instead

Alexander Petkov

Written by

Senior software developer. Focused on helping junior developers.

freeCodeCamp.org

This is no longer updated. Go to https://freecodecamp.org/news instead