Design (2).

Slides:



Advertisements
Similar presentations
Introduction to Object Orientation System Analysis and Design
Advertisements

Copyright © 2012 Pearson Education, Inc. Publishing as Prentice Hall A.1.
Systems Analysis and Design 8th Edition
Chapter 22 Object-Oriented Systems Analysis and Design and UML Systems Analysis and Design Kendall and Kendall Fifth Edition.
Object-Oriented Analysis and Design
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
Irwin/McGraw-Hill Copyright © 2004 The McGraw-Hill Companies. All Rights reserved Whitten Bentley DittmanSYSTEMS ANALYSIS AND DESIGN METHODS6th Edition.
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.
Copyright 2004 Prentice-Hall, Inc. Essentials of Systems Analysis and Design Second Edition Joseph S. Valacich Joey F. George Jeffrey A. Hoffer Appendix.
Object Oriented Concepts. Movement toward Objects Instead of data-oriented or process-oriented Analysis, many firms are now moving to object-oriented.
Structured Vs. Object Oriented Analysis and Design SAD Vs. OOAD
Introduction To System Analysis and design
CMIS 470 Structured Systems Design
CHAPTER ONE Problem Solving and the Object- Oriented Paradigm.
Copyright 2001 Prentice-Hall, Inc. Essentials of Systems Analysis and Design Joseph S. Valacich Joey F. George Jeffrey A. Hoffer Appendix A Object-Oriented.
Copyright 2002 Prentice-Hall, Inc. Modern Systems Analysis and Design Third Edition Jeffrey A. Hoffer Joey F. George Joseph S. Valacich Chapter 20 Object-Oriented.
Database Management System Prepared by Dr. Ahmed El-Ragal Reviewed & Presented By Mr. Mahmoud Rafeek Alfarra College Of Science & Technology Khan younis.
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.
Lab 04.
Chapter 5 Models and UML Notation for The Object-Oriented Approach.
Systems Analysis & Design 7 th Edition Chapter 5.
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.
CIS 112 Exam Review. Exam Content 100 questions valued at 1 point each 100 questions valued at 1 point each 100 points total 100 points total 10 each.
What is Object-Oriented?  Organization of software as a collection of discreet objects that incorporate both data structure and behavior.
Object-Oriented Data Modeling
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 5 System Modeling. What is System modeling? System modeling is the process of developing abstract models of a system, with each model presenting.
Slide 1 Systems Analysis and Design With UML 2.0 An Object-Oriented Approach, Second Edition Chapter 2: Introduction to Object-Oriented Systems Analysis.
Chapter 2: Introduction to Object Orientation Object-Oriented Systems Analysis and Design Joey F. George, Dinesh Batra, Joseph S. Valacich, Jeffrey A.
Copyright © 2009 Pearson Education, Inc. Publishing as Prentice Hall Appendix A Object-Oriented Analysis and Design A.1.
Copyright © 2010 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Starting Out with Programming Logic & Design Second Edition by Tony Gaddis.
Basic Characteristics of Object-Oriented Systems
Slide 1 Unified Modeling Language, Version 2.0 Object-Oriented SAD.
5 Systems Analysis and Design in a Changing World, Fourth Edition.
5 Chapter 5: Modeling Systems Requirements: Events and Things Systems Analysis and Design in a Changing World.
Object-Oriented Programming
Appendix 3 Object-Oriented Analysis and Design
Object-Oriented Modeling
Object-oriented and Structured System Models
Sachin Malhotra Saurabh Choudhary
Chapter 1: Introduction to Systems Analysis and Design
Business System Development
DATA REQIREMENT ANALYSIS
Roberta Roth, Alan Dennis, and Barbara Haley Wixom
The Movement To Objects
Systems Analysis and Design
Object-Oriented Analysis and Design
Systems Analysis and Design With UML 2
Systems Analysis and Design With UML 2
Object-Oriented Programming
DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING
Software Architecture & Design Pattern
Software Engineering Lecture #11.
Unified Modeling Language
Chapter 20 Object-Oriented Analysis and Design
Appendix A Object-Oriented Analysis and Design
Systems Analysis – ITEC 3155 Modeling System Requirements – Part 2
Chapter 1: Introduction to Systems Analysis and Design
Chapter 5.
Chapter 22 Object-Oriented Systems Analysis and Design and UML
Appendix A Object-Oriented Analysis and Design
Appendix A Object-Oriented Analysis and Design
Chapter 1: Introduction to Systems Analysis and Design
Presentation transcript:

Design (2)

6.3 Object-Oriented Design Classes and Objects are the basic building blocks of an OO design, just like functions (and procedures) are for a function-oriented design. Objects are entities that encapsulate some state (data) and provide services to be used by a client, which could be another object, program, or a user.

6.3 Object-Oriented Design A classes defines a possible set of objects. A class represents a set of objects that share a common structure and a common behavior, whereas an object is an instance of a class.

6.3 Object-Oriented Design Relationships among Objects : An object, as a stand-alone entity, has very limited capabilities—it can only provide the services defined on it. In object-oriented systems, an object interacts with another by sending a message to the object to perform some service it provides .

6.3 Object-Oriented Design Relationships among Objects If an object uses some services of another object, there is an association between the two objects. This association is also called a link . Links between objects capture the client/server type of relationship .

6.3 Object-Oriented Design Inheritance: Inheritance is a relation between classes that allows for definition and implementation of one class based on the definition of existing classes . When a class B inherits from another class A, B is referred to as the subclass or the derived class and A is referred to as the superclass or the base class. a subclass B will have two parts: a derived part and an incremental part. Inheritance is often called an “is a” relation, implying that an object of type B is also an instance of type A. The inheritance relation between classes forms a hierarchy. when a subclass inherits from many super classes, is called multiple inheritance .

6.3 Object-Oriented Design Inheritance types : Inheritance can be broadly classified of 2 types : Strict inheritance: a subclass takes all the features from parent class and adds additional features to specialize it. Nonstick inheritance: a subclass does not have all the features of the parent class or some features have been redefined. Inheritance and Polymorphism polymorphism : refers to objects of different types at different times. In OO system with inheritance, polymorphism cannot be avoided it must be supported

6.3.1Unified Modeling Language (UML) UML is a graphical notation for expressing object- oriented designs . while modeling, during the design process, the designer also tries to understand how the different classes are related and how they interact to provide the desired functionality. UML can create different models, it has become an aid for understanding the system, designing the system, as well as a notation for representing design.

UML diagram types Activity diagrams, which show the activities involved in a process or in data processing . Use case diagrams, which show the interactions between a system and its environment. Sequence diagrams, which show interactions between actors and the system and between system components. Class diagrams, which show the object classes in the system and the associations between these classes. State diagrams, which show how the system reacts to internal and external events. Chapter 5 System modeling

Class diagrams Class diagrams are used when developing an object- oriented system model to show the classes in a system and the associations between these classes.

Class diagrams A class diagram defines : Classes that exist in the system—besides the class name, the diagrams are capable of describing the key fields as well as the important methods of the classes. Associations between classes—what types of associations exist between different classes. Subtype, super type relationship—classes may also form subtypes giving type hierarchies using polymorphism. The class diagrams can represent these hierarchies also.

UML classes and association Chapter 5 System modeling

Classes and associations in the MHC-PMS Chapter 5 System modeling

The Consultation class Chapter 5 System modeling

6-4: Detailed Design here we concentrate on internal design of module Developing detailed design is useful for the more complex and important modules The basic goal in detailed design is to specify the logic for the different modules Specifying the logic will require developing an algorithm that implement the given specification Logic/algorithm design steps : statement of the problem : comes from the system design developing a mathematical model. design of the algorithm : using stepwise refinement technique Stepwise refinement technique breaks the logic design problem into a series of steps , so that the development can be done gradually . for classes , states diagrams can be used to model the relationships between methods