Why is object-oriented programming so popular?
There are certain points due to which OOPs become so popular.
- It provides a better programming style, so you don’t need to write code again and again which you want to run, just make a class of the object and call it.
- As it supports the inheritance concept, an application created with OOPs can inherit another class property.
- It provides a modularity model that means if you change any part of code that is in a separate module, that won’t impact any other module.
- If you are stuck somewhere, this language allows your problems to break down into bite-sized pieces so that you can solve them.
- Due to its polymorphism feature, a single class can be used to create different objects, and that too from the same piece of code.
BY Best Interview Question ON 03 Nov 2021