Object Oriented Programming
Object Oriented Programming
Object Oriented Programming
provides a way of modularizing programs by creating partitioned memory area for both data
and functions that can be used as templates for creating copies of such modules on demand.
OOP treats data as a critical element in the program development and does not allow it to flow
freely around the system. It ties data more closely to the functions that operate on it, and protect
it from accidental modification from outside functions. OOP allows decomposition of a
problem into a number of entities called objects and then builds data and functions around these
objects. The data of an object can be accessed only by the functions associated with that object.
However, functions of one object can access the functions of other objects.
Benefits of OOP:
o Through inheritance, we can eliminate redundant code and extend the use of existing classes.
o We can build programs from the standard working modules that communicate with one
another. This leads to saving of development time and higher productivity.
o The principal of data hiding helps the programmer to build secure programs that cannot be
invaded by code in other parts of the program.
o It is possible to have multiple instances of an object to co-exist without any interference.
o It is possible to map objects in the problem domain to those in the program.
o It is easy to partition the work in a project based on objects.
o The data-centered design approach enables us to capture more details of a model in
implementable form.
o Object oriented systems can be easily upgraded from small to large systems.
o Message passing techniques for communication between objects makes the interface
descriptions with external systems much simpler.
o Software complexity can be easily managed.