OBJECT ORIENTED PROGRAMMING Flashcards
OOP
Emphasize organisation and manipulation of code into objects,providing more intuitive and flexible ways to develop software.
Provide mechanisms such as inheritance and polymorphism to enable reuse and extension of code, allowing more modular and maintainable software.
Class,methods, and objects are key concepts in oop.
Benefits of OOP
Modularity - broken in modular pieces,easier to manage and update.
Reusability - code reuse by allowing objects to b reused in multiple contexts.
Inheritance - creation of new classes based on existing classes . Reduce code duplication.
Polymorphism - objects take different forms. Increase flexibility of program.
Collaboration - objects assigned to different team members to work on, changes made by one team member does not affect work of others.
Limitations of OOP
Steep learning curve - difficult to learn and understand for those new to programming.
Overhead - lot of overhead due to objects and their interactions.
Memory usage - objects in OOP take more memory.
Complexity - more complex as number of objects and interactions between them grows. Difficult to maintain and debug.