Lecture 4- Object Oriented Programming - Structure Programming: o Its main focus is on the algorithm required to perform the computations. o Associated with a top-down design approach. o Modules are tightly coupled and work on global variables o Importance is given to the procedure and not on the data on which these operations operate. - Object-Oriented Programming: o Uses bottom-up design approach o Reduces Complexity o Facilitates Maintenance o Data and procedures have equal importance o Exploits commonality o Promotes Reusability - Advantages of OOP: o Shorter development life-cycle o Cost reduction o Prototype allows testing o Implementation is hidden from the user o Manage software complexity o More suited to the real-world - Main features of the object-oriented programming: o Abstraction – denotes the special characteristics of an object that makes it different than any other object. It focuses on observable behavior to the object and manages complexity by the concept of classes and objects. o Encapsulation – the implementation that gives rise to the observable behavior. o Inheritance – Opens the possibility that allows object to extend other object’s implementation and behavior without having to write the code again.
- Winter '08
- Object-Oriented Programming, dynamic polymorphism