OOP is an approach that provides a way of modularizing a program by creating partitioned memory area for both data and methods that can be used as template for creating copies of such modules(objects) on demand.
So Object Oriented Programming or OOP is a technique to create programs based on the real world object. Unlike procedural programming, here in the OOP programming model, programs are organized around objects and data rather than actions and logic.
The concepts and rules used in object-oriented programming provide these important benefits:
1) The concept of a data class makes it possible to define subclasses of data objects that share some or all of the main class characteristics. Called inheritance, this property of OOP forces a more thorough data analysis, reduces development time, and ensures more accurate coding.
2) Since a class defines only the data it needs to be concerned with, when an instance of that class (an object) is run, the code will not be able to accidentally access other program data. This characteristic of data hiding provides greater system security and avoids unintended data corruption.
3) The definition of a class is reusable not only by the program for which it is initially created but also by other object-oriented programs (and, for this reason, can be more easily distributed for use in networks).
4) The concept of data classes allows a programmer to create any new data type that is not already defined in the language itself.
Comment for any doubts.......
Comment for any doubts.......