SmallWhale

Object-Oriented Programming: Building with Digital Blocks!

Imagine building with special digital blocks that know how to do things! That's object-oriented programming!

Images

Object-oriented programming

Object-oriented programming

wikipedia
Transformer, schematic object hierarchy, for implementation in object-oriented programming
History of object-oriented programming languages
Byte reprint 1989: The Next Step
Hubble’s Treasure Chest of Galaxies
Galactic treasure chest
Object-Oriented-Programming-Methods-And-Classes-with-Inheritance
Summary of Notes from CMA
LOOP: Lego Object Oriented Programming
Vojtěch Merunka - september 2019
Pages Software
150205-Z-UW413-003

Key Facts

Programming Style
A way to organize computer code using 'objects'.
First Ideas
Developed in the 1960s.
Core Idea
Objects bundle data (like a car's color) and actions (like a car's ability to drive).
Benefit
Makes complex programs easier to build and manage.
Fun Fact
Many popular video games and apps use object-oriented programming!

What are These Magical Blocks?

Object-oriented programming, or OOP, is like building with super-smart LEGOs! Instead of just plain bricks, these are 'objects' that have their own special jobs and information. Think of a 'car' object. It knows its color, how fast it can go, and it can even 'drive' or 'honk'! Programmers use these objects to build amazing computer programs, like video games or apps on your tablet.

How Do These Blocks Work Together?

These digital blocks, or objects, are created from blueprints called 'classes'. A 'dog' class is like a recipe for making dogs. From this recipe, you can create many different dog objects, like a fluffy poodle or a speedy beagle.

Each dog object has its own name and breed, but they all know how to 'bark' and 'wag their tail' because they came from the same dog class. It makes building programs much tidier!

When Did This Idea Start?

The idea of organizing computer programs like this started to be explored a long time ago, around the 1960s! Early computer scientists were trying to find better ways to make big, complicated programs. They realized that by grouping information and actions together into 'objects', it made programs easier to understand and change.

It was like discovering a much better way to organize a giant toy box!

Where Do We See OOP in Action?

You see OOP everywhere, even if you don't realize it! When you play a video game, the characters, enemies, and even the items you collect are often built using OOP. The apps on your phone, like a drawing app or a game, use OOP to make them work smoothly. Even the websites you visit use OOP to show you pictures, videos, and buttons that do different things when you click them!

Was this helpful?
W

Based on content from Wikipedia · Licensed under CC BY-SA 4.0