Advantages and Disadvantages of OOP
Advantages of OOPs
Object oriented programming contributes greater programmer productivity, better quality of software and lesser maintenance cost.
The main advantages are:
- Making the use of inheritance, redundant code is eliminated, and the existing class is extended.
- Through data hiding, programmer can build secure programs that cannot be invaded by code in other parts of the program.
- It is possible to have multiple instances of an object to co-exist without any interference.
- System can be easily upgraded from small to large systems.
- Software complexity can be easily managed.
- Message passing technique for communication between objects makes the interface description with external system much simpler.
- Aids trapping in an existing pattern of human thought into programming.
- Code reusability is much easier than conventional programming languages.
Disadvantages of OOPs
- Compiler and runtime overhead. Object oriented program required greater processing overhead – demands more resources.
- An object’s natural environment is in RAM as a dynamic entity but traditional data storage in files or databases.
- Re-orientation of software developer to object-oriented thinking.
- Requires the mastery in software engineering and programming methodology.
- Benefits only in long run while managing large software projects.
- The message passing between many objects in a complex application can be difficult to trace & debug.
Post A Comment:
0 comments so far,add yours