Introduction

https://blog.sigma-star.io/2024/01/people-dont-understand-oop/

OOP stands for Object-Oriented Programming.

Procedural programming is about writing procedures or functions that perform operations on the data, while object-oriented programming is about creating objects that contain both data and functions.

But What is an Object

What about Class

Classes and objects are the two main aspects of object-oriented programming.

Why OOP

Following two concept explain everything the use of OOPs.

Abstraction is mostly done by interfaces rather than abstract class.

In real life, you deal with a lot of objects or entities like a car, bike, animal, etc. So, programmers need software to be similar to real-world entities.

OOP allows code to be reusable and make it more simple. For example, you don’t have to define each room in the hotel management system every time, you can use OOP, to create a class for the room and use it whenever required.

Fundamentals Of OOP

There are 4 major principles that make a language Object Oriented: