Scott Grissom, copyright 2004Ch 2 OO Design Slide 1 Object Oriented Design Chapter 2 focuses on: objects, classes inheritance polymorphism UML class diagrams.

Slides:



Advertisements
Similar presentations
Computer Science Dept. Fall 2003 Object models Object models describe the system in terms of object classes An object class is an abstraction over a set.
Advertisements

Systems Analysis and Design 8th Edition
Solutions to Review Questions. 4.1 Define object, class and instance. The UML Glossary gives these definitions: Object: an instance of a class. Class:
Object-Oriented Analysis and Design
Department of Computing
Chapter 1 Object-Oriented System Development
2-1 © Prentice Hall, 2007 Chapter 2: Introduction to Object Orientation Object-Oriented Systems Analysis and Design Joey F. George, Dinesh Batra, Joseph.
1 Inheritance Reserved word protected Reserved word super Overriding methods Class Hierarchies Reading for this lecture: L&L 8.1 – 8.5.
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
Irwin/McGraw-Hill Copyright © 2004 The McGraw-Hill Companies. All Rights reserved Whitten Bentley DittmanSYSTEMS ANALYSIS AND DESIGN METHODS6th Edition.
Chapter 14 (Web): Object-Oriented Data Modeling
Basic OOP Concepts and Terms
OBJECT ORIENTED ANALYSIS & DESIGN Vassilka Kirova Department of Computer & Information Science NJIT.
Lecturer: Dr. AJ Bieszczad Chapter 66-1 Object-Oriented analysis and design Special nature of OO development Use cases Design with UML OO system design.
Systems Analysis & Design Sixth Edition Systems Analysis & Design Sixth Edition Toolkit Part 5.
Lecture 13: Object- Oriented Concepts Anita S. Malik Adapted from Schach (2004) Chapter 7.
6. 2Object-Oriented Analysis and Design with the Unified Process Objectives  Explain how events can be used to identify use cases that define requirements.
©TheMcGraw-Hill Companies, Inc. Permission required for reproduction or display. Chapter 1 Introduction to Object-Oriented Programming and Software Development.
2-1 © Prentice Hall, 2004 Chapter 2: Introduction to Object Orientation (Adapted) Object-Oriented Systems Analysis and Design Joey F. George, Dinesh Batra,
Object Oriented Concepts. Movement toward Objects Instead of data-oriented or process-oriented Analysis, many firms are now moving to object-oriented.
Chapter 14: Object-Oriented Data Modeling
Inheritance. © 2004 Pearson Addison-Wesley. All rights reserved 8-2 Inheritance Inheritance is a fundamental object-oriented design technique used to.
Unified Modeling Language
Introduction To System Analysis and design
UML Unified Modeling Language. What is UML? Unified Modeling Language (UML) is a standardized, general-purpose modeling language in the field of software.
Systems Analysis and Design in a Changing World, Tuesday, Feb 27
SOFTWARE DESIGN AND ARCHITECTURE LECTURE 18. Review User interface Design principles Design Guidelines.
Unified Modeling Language, Version 2.0
11 Chapter 11 Object-Oriented Databases Database Systems: Design, Implementation, and Management 4th Edition Peter Rob & Carlos Coronel.
System Analysis System Analysis - Mr. Ahmad Al-Ghoul System Analysis and Design.
CH06: Considering Objects TECH Computer Science  Set, Class, Type  …of…  Objects, Actors, Agents  Data and Actions Object-Oriented Design and Development.
CS3773 Software Engineering Lecture 04 UML Class Diagram.
UML – Universal Modeling Language IT 210 Introduction to Modeling.
Systems Analysis & Design 7 th Edition Chapter 5.
To navigate the slide presentation, use the navigation bar on the left OR use your right and left arrow keys. Move your mouse over the key terms throughout.
Systems Analysis and Design 8 th Edition Chapter 6 Object Modeling.
CHAPTER 13: OBJECT-ORIENTED DATA MODELING (OVERVIEW) © 2013 Pearson Education, Inc. Publishing as Prentice Hall 1 Modern Database Management 11 th Edition.
©Ian Sommerville 2004Software Engineering, 7th edition. Chapter 14 Slide 1 Object-oriented Design.
Unified Modeling Language © 2002 by Dietrich and Urban1 ADVANCED DATABASE CONCEPTS Unified Modeling Language Susan D. Urban and Suzanne W. Dietrich Department.
1 Class Diagrams: The Essentials. 2 Terms and Concepts A class is... The most important building block of any object-oriented system. A description of.
Fall 2010 CS4310 Requirements Engineering A Brief Review of UML & OO Dr. Guoqiang Hu Department of Computer Science UTEP 1.
Basic OOP Concepts and Terms. In this class, we will cover: Objects and examples of different object types Classes and how they relate to objects Object.
Design? !… When it needs? To understand, to communicate with customers Complex problem What is good design? Separate What to do?(Policy) and How to do(mechanism)
Object-Oriented Modeling: Static Models. Object-Oriented Modeling Model the system as interacting objects Model the system as interacting objects Match.
 Week08.  Review Schedule Weeks 8-14  This week o Review last class o Introduce Class Diagrams o ICE-03 Sheridan SYST Engineering Quality Systems.
Chapter 12 Object-oriented design for more than one class.
1 Unified Modeling Language, Version 2.0 Chapter 2.
Chapter 2: Introduction to Object Orientation Object-Oriented Systems Analysis and Design Joey F. George, Dinesh Batra, Joseph S. Valacich, Jeffrey A.
1 Foundations of Software Design Fall 2002 Marti Hearst Lecture 7: Object-Oriented Design.
Object Modeling THETOPPERSWAY.COM. Object Modelling Technique(OMT)  Building a model of an application domain and then adding implementation.
Copyright © 2009 Pearson Education, Inc. Publishing as Prentice Hall Appendix A Object-Oriented Analysis and Design A.1.
COP 4331 – OOD&P Lecture 7 Object Concepts. What is an Object Programming language definition: An instance of a class Design perspective is different.
Basic Characteristics of Object-Oriented Systems
CHAPTER 6 OBJECT ANALYSIS.
Slide 1 Unified Modeling Language, Version 2.0 Object-Oriented SAD.
2-1 © Prentice Hall, 2004 Chapter 2: Introduction to Object Orientation Object-Oriented Systems Analysis and Design Joey F. George, Dinesh Batra, Joseph.
Sachin Malhotra Saurabh Choudhary
DATA REQIREMENT ANALYSIS
The Movement To Objects
Course Outcomes of Object Oriented Modeling Design (17630,C604)
Object-Oriented Analysis and Design
Analysis and Design with UML: Discovering Classes and Relationships
Analysis and Design with UML: Discovering Classes and Relationships
Analysis and Design with UML: Discovering Classes and Relationships
Analysis and Design with UML: Classes and Relationships
Basic OOP Concepts and Terms
Chapter 5.
From Class Diagram to Contract Diagram
Presentation transcript:

Scott Grissom, copyright 2004Ch 2 OO Design Slide 1 Object Oriented Design Chapter 2 focuses on: objects, classes inheritance polymorphism UML class diagrams OO Design Allows us to design solutions in a more natural way using the language of the problem domain

Scott Grissom, copyright 2004Ch 2 OO Design Slide 2 Objects State internal values Behavior methods Identity unique spot in memory object references multiple refs possible State & Behavior of traffic light elevator car

Scott Grissom, copyright 2004Ch 2 OO Design Slide 3 Object-oriented Design (2.3) a creative process requires intuition & experience multiple solutions compare strengths & weaknesses Program Specifications what needs to be built? Responsibilities & Relationships who does what? supermarket employees, football team Mary and Tom work together in an office Identify objects, actions look for nouns and verbs See examples in the book

Scott Grissom, copyright 2004Ch 2 OO Design Slide 4 Identify relationships “is a” inheritance or generalization a car is a vehicle extends a class “has a” association a car has an engine contains instance variables “uses” dependency a car uses gasoline has local variables “realization” implements an interface

Scott Grissom, copyright 2004Ch 2 OO Design Slide 5 A Good Design… Objects have high cohesion Objects are loosely coupled Resembles a collection of interacting entities Objects have unique responsibilities and collaborate with other objects Can be modifed easily in response to future demands

Scott Grissom, copyright 2004Ch 2 OO Design Slide 6 Inheritance (2.2.3) Take advantage of things that are similar to each other Quick way to use existing classes Plastic dolls Barbie Skipper Ballet barbie Gymnast barbie GI Joe became Ken

Scott Grissom, copyright 2004Ch 2 OO Design Slide 7 Inheritance Inheritance allows us to derive a new class from an existing one The existing class is called the parent class, or superclass The derived class is called the child class or subclass. The child class inherits the methods and data defined for the parent class

Scott Grissom, copyright 2004Ch 2 OO Design Slide 8 Class Hierarchies A child class of one parent can be the parent of another child, forming class hierarchies It is almost an ‘art’ to design an appropriate hierarchy Common characteristics should be grouped together in the parent class Group Exercise sausage, scrambled eggs toast, muffins orange juice, milk bacon, cereal pancakes, fried eggs

Scott Grissom, copyright 2004Ch 2 OO Design Slide 9 UML Class Diagrams (2.3.2) UML notation unified modeling language graphical notations (blueprint) conveys key design concepts 9 diagrams class diagrams disregard sequence diagrams Classes name optional instance variables optional methods Relationships inheritance - solid line with triangle association - solid line with arrow dependency - dashed line with arrow realization - dashed line with arrow Automobile example Book Examples (2.3, 2.4) Group Activity draw a class diagram starting with a desktop computer

Scott Grissom, copyright 2004Ch 2 OO Design Slide 10 Group Activities Brainstorm components behavior relationships A voice mail system Solitaire game Student juke box