Preview

Object Oriented Programming

Powerful Essays
Open Document
Open Document
13874 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Object Oriented Programming
Object-Oriented
Programming with
Objective-C

Contents

Introduction 5
Who Should Read This Document 5
Organization of This Document 6
See Also 6

Why Objective-C? 7
Object-Oriented Programming 8
Data and Operations 8
Interface and Implementation 9

The Object Model 12
The Messaging Metaphor 13
Classes 15
Modularity 16
Reusability 16
Mechanisms of Abstraction 18
Encapsulation 18
Polymorphism 19
Inheritance 20
Class Hierarchies 21
Subclass Definitions 21
Uses of Inheritance 22
Dynamism 23
Dynamic Typing 24
Dynamic Binding 25
Dynamic Loading 27

Structuring Programs 29
Outlet Connections 29
Extrinsic and Intrinsic Connections 30
Activating the Object Network 31
Aggregation and Decomposition 31
Models and Frameworks 32

2010-11-15 | Copyright © 2010 Apple Inc. All Rights Reserved.

2

Contents

Structuring the Programming Task 34
Collaboration 34
Organizing Object-Oriented Projects 35
Designing on a Large Scale 35
Separating the Interface from the Implementation 35
Dividing the Work into Modules 35
Keeping the Interface Simple 36
Making Decisions Dynamically 36
Inheriting Generic Code 36
Reusing Tested Code 36

Document Revision History 38

2010-11-15 | Copyright © 2010 Apple Inc. All Rights Reserved.

3

Figures

Object-Oriented Programming 8
Figure 2-1

Interface and implementation 9

The Object Model 12
Figure 3-1
Figure 3-2
Figure 3-3

An object 12
Objects in a network 13
An inheritance hierarchy 21

Structuring Programs 29
Figure 4-1

Outlets 30

2010-11-15 | Copyright © 2010 Apple Inc. All Rights Reserved.

4

Introduction

An object-oriented approach to application development makes programs more intuitive to design, faster to develop, more amenable to modification, and easier to understand. Most object-oriented development environments consist of at least three parts:


A library of objects



A set of development tools



An object-oriented

You May Also Find These Documents Helpful

  • Better Essays

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

    • 1800 Words
    • 6 Pages
    Better Essays
  • Powerful Essays

    Chapter 1 Chapter 2 Chapter 3 Chapter 4 Chapter 5 Chapter 6 Chapter 7 Chapter 8 Chapter 9 Chapter 10 Chapter 11 Chapter 12 Chapter 13 Chapter 14 Chapter 15 Chapter 16 Chapter 17 Chapter 18 Chapter 19 Chapter 20 Chapter 21 Chapter 22 Chapter 23 Chapter 24 Chapter 25 Chapter 26 Chapter 27 An Introduction to Hardware, Software, and the Internet An Introduction to Software Development Objects and Classes Algorithms Java Syntax and Style Data Types, Variables, and Arithmetic Boolean Expressions and if-else Statements Iterative Statements: while, for, do–while Implementing Classes and Using Objects Strings Class Hierarchies and Interfaces Arrays…

    • 3908 Words
    • 16 Pages
    Powerful Essays
  • Good Essays

    Psy300 Week 8

    • 760 Words
    • 4 Pages

    • Identify how you can encapsulate the data and processes you identified into an object-oriented design.…

    • 760 Words
    • 4 Pages
    Good Essays
  • Good Essays

    Comp 220

    • 1463 Words
    • 6 Pages

    This lab will explore the use of pointers in several ways. Pointers will be used to dynamically allocate memory for new class objects on demand from the user, and they will be used to access class-member functions. Pointer arithmetic will be used to access and sort class objects according to criteria explained in the lab.…

    • 1463 Words
    • 6 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

    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
  • Powerful Essays

    OOP Assigment 1 Sit 1

    • 4788 Words
    • 20 Pages

    Inheritance is when a class (subclass) has the same attributes and methods of another class (parent class); this is done by creating class from an existing class. While a subclass has properties derived for the parent class, it can also have properties of its own.…

    • 4788 Words
    • 20 Pages
    Powerful Essays
  • Satisfactory Essays

    Object Oriented Design

    • 263 Words
    • 2 Pages

    The object oriented design to be used CD and DVD media collection system to identify the information about the media. You will need some general information to make the system work correctly.…

    • 263 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    CHAPTER11

    • 2591 Words
    • 18 Pages

    Which line of code will declare and create an instance of a new object variable called…

    • 2591 Words
    • 18 Pages
    Good Essays
  • Good Essays

    David Etheridge Java: Graphical User Interfaces – An Introduction to Java Programming Download free eBooks at bookboon.com 2 Java: Graphical User Interfaces – An Introduction to Java Programming © 2009 David Etheridge & Ventus Publishing ApS ISBN 978-87-7681-496-0 Download free eBooks at bookboon.com 3 Contents Java: Graphical User Interfaces Contents 1. 1.1 1.2 1.3 1.4 1.5 1.6 1.7…

    • 4571 Words
    • 19 Pages
    Good Essays
  • Good Essays

    1. Rewrite the following counter-control program to do while loop and for loop, in order to print out the biggest number inputted via keyboard.…

    • 1229 Words
    • 8 Pages
    Good Essays
  • Satisfactory Essays

    Html Css

    • 405 Words
    • 2 Pages

    Student Course Registration System REQUIREMENTS REPORT CENG XXX Fall 2001 October xx, 20XX Ayşe Güzel Mehmet Güçlü Computer Engineering Department Middle East Technical University Student Course Registration System Requirements Analysis Report date 1. Introduction –1.1 Purpose of this Document –1.2 Scope of this Document –1.3 Overview –1.4 Business Content 2. General Description –2.1 Product Functions –2.2 Similar System(s) Information –2.3 User Characteristics –2.4 User Problem Statement –2.5 User Objectives –2.6 General Constraints 3.Functional Requirements Descriptions about what the system should accomplish – not how. 3.1 Registration {Top level functions are called: “Capability”} • Description about the top-level system function (Capability). • USE CASE DIAGRAM 3.1.1 Student Log-in {This is a “System Function”} • Corresponds to a USE CASE (one oval in the use case diagram)…

    • 405 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    BACHELOR OF COMPUTER APPLICATIONS (BCA) ASSIGNMENTS Year, 2013 (4rd Semester (Revised Syllabus)) (BCS-040, MCS-024, BCS-041, BCS-042, MCSL-016, BCSL-043, BCSL-044, BCSL-045) SCHOOL OF COMPUTER AND INFORMATION SCIENCES INDIRA GANDHI NATIONAL OPEN UNIVERSITY MAIDAN GARHI, NEW DELHI – 110 068 CONTENTS |Course Code |Assignment No. | Submission-Schedule |Page No. | | | |For Jan-June Session |For July-Dec Session | | |BCS-040 |BCA(IV)-040/Assign/13 |15th April, 2013 |15th October 2013 |3 | |MCS-024 |BCA(IV)-024/Assign/13 |15th April, 2013 |15th October 2013 |4 | |BCS-041 |BCA(IV)-041/Assign/13 |15th April, 2013 |15th October 2013 |6 | |BCS-042 |BCA(IV)-042/Assign/13 |15th April, 2013 |15th October 2013 |8 | |MCSL-016 |BCA(IV)-L016/Assign/13 |15th April, 2013 |15th October 2013 |9 | |BCSL-043 |BCA(IV)-043/Assign/13 |15th April, 2013 |15th October 2013 |10 | |BCSL-044 |BCA(IV)-044/Assign/13 |15th April, 2013 |15th October 2013 |11 | |BCSL-045 |BCA(IV)-045/Assign/13 |15th April, 2013 |15th October 2013 |14 | Course Code : BCS-040 Course Title : Statistical Techniques…

    • 2116 Words
    • 9 Pages
    Satisfactory Essays
  • Satisfactory Essays

    allow custom items of information about a program element to be stored with an assembly's metadata.…

    • 2982 Words
    • 23 Pages
    Satisfactory Essays