CIS 3100 Structured Programming Intro

It takes a lot of effort reading through the code

Info icon This preview shows pages 14–16. Sign up to view the full content.

It takes a lot of effort reading through the code line by line until finally, the light bulb event. That time when everything comes together and what was once very complicated becomes not really very complicated at all. This is the “light bulb event” you will have when OOP finally makes complete sense.
Image of page 14

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

UNDERSTANDING ABSTRACTION   For many, the concept of abstraction is justification itself for choosing OOP over traditional  programming approaches like a structured programming. Using the concept of abstraction,  means the user of a class object only needs to understand how to communicate with the object.  In other words, the class object needs to know how to send messages and how to interpret the  messages that are sent. This sounds more complicated than it actually is.   For example, we all know how to use a telephone. We know that if we hit the keys on the keypad  in a pattern that represents the parties’ telephone number we wish to communicate with, that the  phone switch owned by the telephone company will facilitate connecting us to the party we're  calling. Do we need to know any of the specifics about the telephone equipment or how this  happens? Do we know the properties of the plastic used in the hand set? Do we understand the  electrical schematic which represents how the electronics of the telephone works? Do we  understand how a telephone company takes the telephone number we entered and switch that to  the appropriate party? The answer all these questions is no. This is abstraction or not having to  understand the details of the thing we are using but just how to communicate with it.       All we need to know to use the telephone is how to send it messages. We need to know that by  pressing the keypad (sending an input message) we provide input to the system that is going to  connect our call (processing) and we know that once the call is picked up, our voice will be  transmitted through the speaker (output) in the headset. Many will tell you that abstraction is the  principal benefit behind OOP. They will tell you that our brain uses abstraction every second of  the day to interact with things in our environment. Many of these things we may not understand  but we do know how to communicate with them. It is because of the concept of abstraction that  many would argue that OOP is the most efficient way of creating program logic.
Image of page 15
Image of page 16
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern