Introduction to Objects Adapted from “TEN STEPS TO OBJECT-SPEAK” a CPT Tech Talk by Joy Starks September 17, 1999.

Slides:



Advertisements
Similar presentations
When is Orientated Programming NOT? Mike Fitzpatrick.
Advertisements

1 OBJECT-ORIENTED CONCEPTS. 2 What is an object?  An object is a software entity that mirrors the real world in some way.  A software object in OOP.
Stéphane Ducasse2.1 OOP? What is OOP? Why? OOP in a nutshell.
2-1 © Prentice Hall, 2007 Chapter 2: Introduction to Object Orientation Object-Oriented Systems Analysis and Design Joey F. George, Dinesh Batra, Joseph.
Introduction To System Analysis and Design
L3-1-S1 OO Concepts © M.E. Fayad SJSU -- CMPE Software System Engineering Dr. M.E. Fayad, Professor Computer Engineering Department, Room.
Object-oriented analysis (OOA) techniques are used to (1) study existing objects to see if they can be reused or adapted for new uses, and (2) define new.
Object-Oriented Databases v OO systems associated with – graphical user interface (GUI) – powerful modeling techniques – advanced data management capabilities.
Object Oriented System Development with VB .NET
What is an object? Your dog, your desk, your television set, your bicycle. Real-world objects share two characteristics: They all have state and behavior;
Irwin/McGraw-Hill Copyright © 2004 The McGraw-Hill Companies. All Rights reserved Whitten Bentley DittmanSYSTEMS ANALYSIS AND DESIGN METHODS6th Edition.
OBJECT ORIENTED ANALYSIS & DESIGN Vassilka Kirova Department of Computer & Information Science NJIT.
Object-Oriented Programming Concept. Concepts of Object Orientation Objects and classes. method Message passing Inheritance.
Requirements Analysis 2 What objects collaborate to achieve the goal of a use case?
Object-oriented Programming Concepts
Irwin/McGraw-Hill Copyright © 2000 The McGraw-Hill Companies. All Rights reserved Whitten Bentley DittmanSYSTEMS ANALYSIS AND DESIGN METHODS5th Edition.
Visual Basic Introduction IDS 306 from Shelly, Cashman & Repede Microsoft Visual Basic 5: Complete Concepts and Techniques.
Representing Systems Sixth Meeting. Modeling Systems Models block-diagram Used throughout engineering Represents behavior and structure of systems. Only.
C++ fundamentals.
BACS 287 Basics of Object-Oriented Programming 1.
The chapter will address the following questions:
CPT 140 Programming Constructs1 OBJECT ORIENTED TECHNOLOGY Terminology and Basic Concepts.
Introduction To System Analysis and design
Object Oriented Software Development
Object Orientation An Object oriented approach views systems and programs as a collection of interacting objects. An object is a thing in a computer system.
Introduction to Object-oriented programming and software development Lecture 1.
11 1 Object oriented DB (not in book) Database Systems: Design, Implementation, & Management, 6 th Edition, Rob & Coronel Learning objectives: What.
Object Oriented Programming Lecturer: Andreas P. Adi
BCS 2143 Introduction to Object Oriented and Software Development.
An Object-Oriented Approach to Programming Logic and Design
Sadegh Aliakbary Sharif University of Technology Fall 2011.
CHAPTER ONE Problem Solving and the Object- Oriented Paradigm.
Unified Modeling Language, Version 2.0
Introduction To System Analysis and Design
11 Chapter 11 Object-Oriented Databases Database Systems: Design, Implementation, and Management 4th Edition Peter Rob & Carlos Coronel.
1 Object-Oriented Systems Development Bahrami © Irwin/ McGraw-Hill Chapter 2: Object Basics Object-Oriented Systems Development Using the Unified Modeling.
Object Oriented Programming Principles Lecturer: Kalamullah Ramli Electrical Engineering Dept. University of Indonesia Session-3.
SNPL1 Woochang Lim What (Variable) + How (Function) = Object Objects are the physical and conceptual things we find in the universe around us. Object-Oriented.
Object-Oriented Design Simple Program Design Third Edition A Step-by-Step Approach 11.
PowerPoint Presentation for Dennis & Haley Wixom, Systems Analysis and Design, 2 nd Edition Copyright 2003 © John Wiley & Sons, Inc. All rights reserved.
ITEC 3220A Using and Designing Database Systems Instructor: Gordon Turpin Course Website: Office: CSEB3020.
Learners Support Publications Object Oriented Programming.
Salman Marvasti Sharif University of Technology Winter 2015.
Slide 1 Systems Analysis and Design With UML 2.0 An Object-Oriented Approach, Second Edition Chapter 2: Introduction to Object-Oriented Systems Analysis.
1 Unified Modeling Language, Version 2.0 Chapter 2.
Chapter 4 Basic Object-Oriented Concepts. Chapter 4 Objectives Class vs. Object Attributes of a class Object relationships Class Methods (Operations)
Object-Oriented Principals Dwight Deugo Nesa Matic
Chapter 11 An introduction to object-oriented design.
Next Back MAP MAP F-1 Management Information Systems for the Information Age Second Canadian Edition Copyright 2004 The McGraw-Hill Companies, Inc. All.
OOPS CONCEPT.  OOPS  Benefits of OOPs  OOPs Principles  Class  Object Objectives.
Lecture 2 Intro. To Software Engineering and Object-Oriented Programming (2/2)
Basic Characteristics of Object-Oriented Systems
Chapter 11 An introduction to object-oriented design.
Sadegh Aliakbary Sharif University of Technology Fall 2010.
Object-Orientated Programming
Sachin Malhotra Saurabh Choudhary
Programming Logic and Design Seventh Edition
JAVA By Waqas.
The Movement To Objects
Systems Analysis and Design
Programming in Java Sachin Malhotra, Chairperson, PGDM-IT, IMS Ghaziabad Saurabh Chaudhary, Dean, Academics, IMS Ghaziabad.
The Object-Oriented Thought Process Chapter 1
OOP What is problem? Solution? OOP
Object Oriented Concepts -I
INTRODUCTION TO OBJECT-ORIENTED PROGRAMMING (OOP) & CONCEPTS
Workshop for Programming And Systems Management Teachers
Handout-2(b) Dr. R. Z. Khan AMU. Aligarh (INDIA).
Object Oriented Analysis and Design
The OOTP is intended to get you thinking about how OO concepts are used in designing object-oriented systems. Note: not talking about OO technologies that.
Presentation transcript:

Introduction to Objects Adapted from “TEN STEPS TO OBJECT-SPEAK” a CPT Tech Talk by Joy Starks September 17, 1999

OBJECTIVES n Discuss the history of Object Oriented Technology (OT) n Describe basic concepts of OT n Define terms in Object Oriented Analysis & Design (OAD) and Programming (OOP) n Relate definitions to real-world examples n Mention some benefits of OT n Practice by Example

HISTORY OF OT n 1969 n Dr. Kristin Nygaard of Norway n Model fjord and movement of ships passing through it

HISTORY OF OT n The Problem ä structured programming separates data from procedures n The Solution ä Object Oriented Programming ä model each component (data and procedure) as a single unit ä model relationships between components

OT BASIC CONCEPTS n Objects and Classes n Operations n Requests n Attributes n Inheritance n Encapsulation n Polymorphism

WHAT’S AN OBJECT? n Anything, real or abstract, about which we store data n Dr. Nygaard’s objects ä mathematical models of boats ä physical aspects of the fjord being analyzed n Other Examples ä an invoice, an organization, a screen with which a user interacts, a drawing, an airplane, an order-filling process...

WHAT’S AN OPERATION? n An activity that reads or manipulates data of an object n Dr. Nygaard’s operations ä boats float, sink, move etc. n Other Examples ä calculating a total, checking a balance, adding a new employee, changing an address, deleting a customer...

HOW OBJECTS COMMUNICATE n An object is sent a message, which in turn causes an operation to be invoked n Sometimes the operation returns a response

WHAT’S AN ATTRIBUTE? n Characteristics that add detail to an object n Dr. Nygaard’s attributes ä color, weight, size, etc. n Other Examples ä someone’s name or address, an employee’s title, a book’s author, a part number, a room’s dimensions

INHERITING ATTRIBUTES n Objects can be decomposed into other objects n Generalization hierarchy n Supertype versus subtype n An object inherits the attributes in its parent class

SAMPLE GENERALIZATION HIERARCHY

WHAT ARE CLASSES? n An object type or object class is a category of an object that has similar characteristics and behavior n Example: employee or student n A class acts as a template or blueprint for object instances

OBJECT INSTANCES n An object instance is a specific example of an object type n Examples ä John P. Smith, Invoice #12356 n And just to make it all really confusing, object instances are sometimes called objects!

ENCAPSULATION n The process of making implementation details of an object transparent to a user n Packaging data and operations together n Allows for information hiding n The black box approach

POLY-WHAT? n Polymorphism ä the ability of two or objects to respond to the same message, each in its own way ä an instruction is given using a generalized, rather than specific, detailed command ä while specific actions would be different, results are the same n Example ä Animal: Speak ä Dogs bark; cats meow

SOME BENEFITS OF OBJECTS n Reusability ä classes can be reused or inherited n Stability ä over time, classes become more stable n Easier Design ä black box concept n Faster Design ä create applications from existing components

Practicing n A mammal is an object n Bear, buffalo, whale, and dolphin are subtypes n Yogi, Wilbur, and Smokey are instances of the Bear subtype n Eye color, ear size, and weight are attributes

Your Turn n VCR n A Sony VCR n My VCR, Serial #9234 n Playback, record, and audio dubbing n the VCR contains complex components that we assume work n Use the remote control Match each VCR example on the left to the object-oriented term on the right. n object subtype n messages n object instance n operations n object n encapsulation

Your Turn: Matching n VCR IS an object n A Sony VCR is an object subtype n Serial #9234 of Sony VCR is an object instance n Playback, record, and audio dubbing are examples of VCR operations n The concept that the VCR contains complex components you assume work is encapsulation n When you use a remote control, you are sending requests to the VCR

Objects are Models n A MODEL... ä represents an aspect of reality ä helps us to understand reality ä assists us in inventing systems or redesigning business areas ä should be simpler than reality –for example, model cars are simpler than a real car

OBJECT STRUCTURE DIAGRAM n Large rectangle with two horizontal dividing lines n Top third  object name n Middle third  object attributes n Bottom third  object methods

SAMPLE OBJECT STRUCTURE DIAGRAM TRAFFIC LIGHT Color Turn Red Turn Yellow Turn Green The operations are described in terms of what they do -- not how they do it.

YOU TRY ONE... n Draw an object structure diagram for the VCR objectVCRButtons On-screen Messages PlayRewind Fast Forward StopRecord

Summary of Terminology n Objects, Classes, Operations, Attributes n Inheritance, Encapsulation, Polymorphism n Generalization Hierarchies n Object Structure Diagrams n Event Diagrams

The End