Q. Explain the concept of Object oriented programming paradigm. Point out different features of OOP. Elaborate the benefit and application of OOP.
Object Oriented Programming system is an approach to program organization and development which attempts to eliminate and remove the pitfalls and drawbacks of conventional programming methods by incorporating the best structured programming features with several new concepts.
The major objective of object oriented approach is to eliminate some of the flaws encountered in the procedural approach.
OOPS 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 protects it from unintentional modification by other functions.
OOPs allows us to decompose a problem into a number of entities called objects and then build data and functions.
The combination of data and methods make up an object.
Object Oriented System is an approach that provides a way of modularizing programs by creating partioned memory area for both data and functions that can be used as templates for creating copies of such modules on demand.
OOPS features are :
1. Class and Objects
2. Abstraction and Data hiding
3. Encapsulation
4. Inheritance
5. Polymorphism
6. Dynamic binding
Benefits of OOPS :
1. Through inheritance , we can eliminate the redundant code and extend the use of existing classes.
2. The principle of data hiding helps the programmer to build secure programs that cannot be invaded by code in other parts of the programs.
3. It is possible to have multiple objects to coexist without any interference.
4. Software complexity can easily be managed.
5. Message passing techniques for communication between objects make the interface description with external systems much simpler.
6. Object oriented systems can easily be upgraded from small to large systems.
7. It is easy to partition the work in project based objects.
8. It is possible to map objects in the problem domain to those objects in program
The application of OOPS includes :
1. Real Time systems
2. Simulation and modelling
3. Object oriented databases
4. Hypertext, hypermedia and expertext
5. AI and Expert Systems.
6. Neural Networks and parallel programming
7. Decision support and office automation
8. CIM / CAD