advantages and disadvantages of OOPs

 

Advantages of OOPs:

·       The programs are modularized based on the principle of classes and objects.

·       Linking code and object allows related objects to share common code. This reduces code duplication and code reusability.

·       Data is encapsulated along with functions. Therefore external functions cannot modify or access data, thus providing data security.

·       Complexity can be minimized through inheritance.

·       Data abstraction separates object specification and object implementation.

·       Creation and implementation of OOP code is easy and reduces software development time.

·       Message passing which makes interface description with outside system very simple.

Disadvantages of OOPs:

·       Large program size than procedure oriented

·       Slower than procedure oriented

·       Not suitable for all type of problems

Comments