Skip to main content

What is OOPS(Object Oriented Programming Structure)

The computer is a machine to solve Human's Real World problem through Code. The code is a medium to write instructions for the computer.

In our world, Everything is an object and each object has Properties and Behavior.

  • Properties: How the object looks like.
  • Behavior: What an object can do.


For example:

  • A Cellphone's properties: color, screen-size, brand, model price etc.
  • A Cellphone's behavior: calling, networking, gaming, photo-shooting etc


We represent in code:

  • Properties as Variables
  • Behavior as Functions.

This style of writing code is OOPS(Object Oriented Programming Structure).

Now the code is much more understandable in the same way as we understand our world.

OOPS has three basic ways to manage the variables and functions are:

  1. Polymorphism
  2. Inheritance
  3. Encapsulation
We can abbreviate these as PIE.

I will discuss them one by one in my further posts.



Comments

suggestions