Lecture 4.docx - Lecture 4 Object Oriented Programming Structure Programming o Its main focus is on the algorithm required to perform the computations o

Lecture 4.docx - Lecture 4 Object Oriented Programming...

This preview shows page 1 - 2 out of 3 pages.

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.
Image of page 1
Image of page 2

You've reached the end of your free preview.

Want to read all 3 pages?

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

Stuck? We have tutors online 24/7 who can help you get unstuck.
A+ icon
Ask Expert Tutors You can ask You can ask You can ask (will expire )
Answers in as fast as 15 minutes