Object-Oriented Programming(OOP) is a programming paradigm that is used to design new software, just like procedure programming. However, unlike procedure programming, OOP is "Object" based rather than "action", which means that the program will operate to analyze and sort data according to the written classes and not operate case by case through logical procedure.
OOP's basic components:
- Class
-Object
- Method
By defining class, we can write a code that can be reused again and again for similar type of data (no need for repeated code). Also, it can give flexibility for the programmer in coding as the class and its methods can be used in many different ways, depending on the case. Furthermore, with OOP it is much easier to fix and maintain the code as it is all divided up (in most cases, you do not need to rewrite entire code).
As computers are developing at a very fast pace, the programming paradigm progressed to produce software that suits them. With great range of data and functions that the computer requires to work with, Object-Oriented Programming is a very important and necessary method for programming.