
Be The MVP of OOP !!!!
February 19, 2023
Sayan Manna
A curious Software Engineer! 🚀Brief overview of OOP concept...
Programming
Why OOP ??? What’s wrong with Procedural Programming ???
These are the most common questions for every newbie . Well let me first talk about what is Object Oriented Programming —
Object-oriented programming (OOP) is a computer programming model that organizes software design around data, or objects, rather than functions and logic. — — I hope its pretty clear now. But why not Procedural Programming?? What are the disadvantages ???
At the time of developing big projects Procedural Programming can be a pain. OOP saves us at that time.
- Procedural Programming assumes that we have procedures or functions for each task or job. Where as in OOP , “Objects” are the basis. Objects keeps “Data” and “Methods” together.
- Assume a situation ,where we have to write functions or methods for some shapes (circle ,square and cube for example) ,where we have to just print that shape’s name and their parameters .In this situation we have to write separate code for each shape in case of procedural programming ,but in OOP we can reuse the code(Inheritance). Wouldn’t that save some time and effort?
- Naturally OOP is more secure as it encapsulates the data and can assess “Data hiding”.Don’t you need more secure software?
- There are many other feature which save a load of effort from developer’s side such as — Polymorphism, Inheritance, Abstraction etc.

Now there are 4 main concepts in OOP -
- Encapsulation : Encapsulation is the process of wrapping up variables and methods into a single entity. In programming, a class is an example that wraps all the variables and methods defined inside it.
- Abstraction : Abstraction is the process of hiding the real implementation of an application from the user and emphasizing only on how to use the application.
- Inheritance : It refers to defining a new class with little or no modification to an existing class. The new class is called derived (or child) class and the one from which it inherits is called the base (or parent) class.
- Polymorphism : Polymorphism means that different types respond to the same function. Polymorphism is very useful as it makes programming more intuitive and therefore easier. Polymorphism is a fancy word that just means the same function is defined on objects of different types.