DEV Community

Gyanendra Kumar Knojiya
Gyanendra Kumar Knojiya

Posted on • Originally published at gyanendraknojiya.Medium on

Understand OOPS using Squid Game

Object-oriented programming is a programming paradigm based on the concept of “objects”, which can contain data and code.

Object-oriented programming is a programming paradigm based on the concept of “objects”, which can contain data and code: data in the form of fields, and code, in the form of procedures. A feature of objects is that an object’s own procedures can access and often 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.

Tasks:

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.

buy a coffee for me https://www.buymeacoffee.com/gyanknojiya

Discussion (0)