Published on

Understand OOPS using Squid Game | Understand object oriented programming

featured Image

An object-oriented program is a programming paradigm based on the concept of “objects”, which may contain data and code: data in the form of fields, and code, in the form of procedures. The feature of the object is that the procedures of the object itself can access and generally modify the data fields themselves.

Here we will try to understand using squid game web series-

1. Polymorphism

Polymorphism is the ability to exit in many forms.

The old man played roles in many forms as the creator, player, and host of the game.


2. Inheritance

Inheritance allows classes to inherit common properties from the parent class.

All players inherit the same parent properties like dress, food, tasks. With that ca have a different player with different playing strategical methods.


3. Encapsulation

Encapsulation means it binds data and code together into one unit.

Squid Game itself is a big Encapsulation. Combination of frontman, VIP, Host, Players, Money (consider as variables), Tasks (consider as a function) makes the Squid Game.


4. Abstraction

Hiding internal details and showing functionality is known as abstraction.


Though everyone performs the tasks no one knows the process behind them. From soldiers, The moto to behind the scenes of preparing everything for the task, which are all hidden.