Preview

Object Oriented Programming

Satisfactory Essays
Open Document
Open Document
935 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Object Oriented Programming
Lecture - 5

Revisiting OOP
CS223
CS223- Object Oriented Programming
Spring 2012
Dr. Fawad Hussain

What we have done so far?
What is object-Oriented Programming?
What is an object?
What is a class?
What are attributes?
What are methods?

How to write a simple class in C++.
Constuctors
Default, overloaded, Destructors

But how to identify objects??
2
Ghulam Ishaq Khan Institute – Spring 2012

Todays Lecture

Revisiting OOP
Identifying Objects, basics of OO analysis and Design

3

OOP

Defining the term
“Object-Oriented”

4
Ghulam Ishaq Khan Institute – Spring 2012

What is an Object?
It is something we interact with
It does something, and/or
It knows something

Thinking in Objects
Everything Is an object.
Every object has an Name/Identity.
Every object has a state.
Every object has a behavior.

5
Ghulam Ishaq Khan Institute – Spring 2012

Objects in our Business World

6
Ghulam Ishaq Khan Institute – Spring 2012

My Object is not Your Object
What you recognize as an object may not be what others recognize as objects Different people can come of with different OO design of the same thing
But there must be some common features and reasoning

Different applications/softwares might treat objects differently

7
Ghulam Ishaq Khan Institute – Spring 2012

The world view
Is different depending on who you are
Goes from high level abstraction to low level realizations
The Universe, Solar system, Asia, South Asia, Pakistan, KPK,
Topi, GIK, FCSE, LH3
Video Rental Stores, Blockbusters, Inventory, Action Movies,
“Terminator”
“Terminator”

Why we care?
We use objects to model the system we are trying to create
Objects allow us to decompose a complex problem into understandable components
8
Ghulam Ishaq Khan Institute – Spring 2012

What is Object Oriented?
Simplicity through self contained objects
Complexity through integration
Interchangeability through framework

9
Ghulam

You May Also Find These Documents Helpful

  • Powerful Essays

    Mat 540 Week 4 Paper

    • 1775 Words
    • 8 Pages

    Although the details can be quite complex, these details are the basic principles of object-oriented programming.…

    • 1775 Words
    • 8 Pages
    Powerful Essays
  • Good Essays

    Psy300 Week 8

    • 760 Words
    • 4 Pages

    Understanding object-oriented methodologies is often difficult. You already understand that object-oriented analysis and design emulates the way human beings tend to think and conceptualize problems in the everyday world. With a little practice, object-oriented programming will become second nature to you.…

    • 760 Words
    • 4 Pages
    Good Essays
  • Satisfactory Essays

    6 8c Chapter Excercises

    • 515 Words
    • 2 Pages

    In object-oriented analysis each object represents real people, places, events, and transactions (nouns). Unlike structured analysis, which treats data and processes separately, objects include data and processes that can affect the data. A major advantage of O-O designs is that systems analysts can save time and avoid errors by using modular objects, and programmers can translate the designs into code, working with reusable program modules that have been tested and verified…

    • 515 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    This course introduces students to object-oriented programming. It covers object-oriented tools for system analysis, design and development. The course teaches the significance of object-oriented programming, the keywords and constructs of the Java programming language, and the steps required to create simple Java technology programs.…

    • 414 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    Array Structure Proposal

    • 574 Words
    • 3 Pages

    In this proposal we will focus on the objects and object-oriented programming that will help solve the problem of the Police Department report writing issue. An object doesn’t exist until a case of the class has been formed. When the object is formed, space for the object is allocated in memory. Multiple objects can be created from just one class. “Objects are created from abstract data types that encapsulate data and functions. An object is a software entity that contains both data and procedures” (Gaddis, 2010). “Object-oriented programming (OOP) is a programming paradigm using "objects" – usually instances of a class – consisting of data fields and methods together with their interactions – to design applications and computer programs. Programming techniques may include features such as data abstraction, encapsulation, messaging, modularity, polymorphism, and inheritance” (Wikipedia, 2012). “Objects are created from abstract data types that encapsulate data and functions together” (Gaddis, 2010). Gaddis went on further to say that “An object is a software entity that contains both data and procedures” (Gaddis, 2010).…

    • 574 Words
    • 3 Pages
    Good Essays
  • Good Essays

    Intro to programming

    • 534 Words
    • 3 Pages

    Design an algorithm that prompts the user to enter his or her height and stores the user’s input in a variable named height.…

    • 534 Words
    • 3 Pages
    Good Essays
  • Powerful Essays

    It 210

    • 2960 Words
    • 12 Pages

    Prelude to Programming: Concepts and Design, Fifth Edition, by Stewart Venit and Elizabeth Drake. Published by Addison-Wesley. Copyright © 2011 by Pearson Education, Inc.…

    • 2960 Words
    • 12 Pages
    Powerful Essays
  • Powerful Essays

    It 210 Weeks

    • 2760 Words
    • 12 Pages

    Venit, S., & Drake, E. (2011). Prelude to programming: Concepts and design (5th ed.). Boston, MA: Addison-Wesley.…

    • 2760 Words
    • 12 Pages
    Powerful Essays
  • Satisfactory Essays

    week 1 assignment

    • 1379 Words
    • 6 Pages

    Drake, E., & Venit, S. (2011). Prelude to programming: Concepts and design (5th ed.). Boston, MA: AddisonWesley.…

    • 1379 Words
    • 6 Pages
    Satisfactory Essays
  • Good Essays

    Diploma H&Sc

    • 755 Words
    • 4 Pages

    Objects: can be used for point of reference, example holding up a cup when ask somebody if they would like a drink. The object can help the person to understand what you are saying.…

    • 755 Words
    • 4 Pages
    Good Essays
  • Powerful Essays

    The Object-Oriented Question

    • 4233 Words
    • 17 Pages

    Lefkowitz, S. (1980), Pathological verbalizations of process and reactive schizophrenics as a function of object- and ego-oriented questions and interviewer 's style. PhD dissertation.…

    • 4233 Words
    • 17 Pages
    Powerful Essays
  • Satisfactory Essays

    Envisioning program components as objects that are similar to concrete objects in the real world is the hallmark of _____________.…

    • 4265 Words
    • 23 Pages
    Satisfactory Essays
  • Good Essays

    References: Based on object-oriented application design best practices which are discussed in several areas such as the Code Project (www.codeproject.com) , skilsoft module Getting Started with Software Programming, EBOOK collection: Prelude to Programming. Concepts and Design, Fifth Edition…

    • 613 Words
    • 3 Pages
    Good Essays
  • Good Essays

    Computer Science Terms

    • 1163 Words
    • 5 Pages

    Composite structure: the size of a typical software system implies that it must be broken down into manageable pieces of this…

    • 1163 Words
    • 5 Pages
    Good Essays
  • Good Essays

    Objective: The student is able to use object diagrams to communicate ideas in familiar domains. Initial script for introducing object diagrams:…

    • 816 Words
    • 4 Pages
    Good Essays

Related Topics