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.
For example:
We represent in code:
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:
I will discuss them one by one in my further posts.
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:
- Polymorphism
- Inheritance
- Encapsulation
I will discuss them one by one in my further posts.
Comments
Post a Comment