Downloaded From: www.bsit.zxq.net.  We may want to reuse characteristics of more than one parent class Downloaded From: www.bsit.zxq.net.

Slides:



Advertisements
Similar presentations
UML an overview.
Advertisements

©Ian Sommerville 2004Software Engineering, 7th edition. Chapter 8 Slide 1 System modeling 2.
UML Class Diagram. UML Class Diagrams2 Agenda What is a Class Diagram? Essential Elements of a UML Class Diagram Tips.
1 © Prentice Hall, 2002 Chapter 3: Modeling Data in the Organization Modern Database Management 6 th Edition Jeffrey A. Hoffer, Mary B. Prescott, Fred.
2-1 © Prentice Hall, 2007 Chapter 2: Introduction to Object Orientation Object-Oriented Systems Analysis and Design Joey F. George, Dinesh Batra, Joseph.
L3-1-S1 OO Concepts © M.E. Fayad SJSU -- CMPE Software System Engineering Dr. M.E. Fayad, Professor Computer Engineering Department, Room.
Database Design & Mapping
Object-Oriented Programming (OOP) Lecture No. 5 Downloaded From:
Chapter 2: Entity-Relationship Model (Continued)
Class Number – CS 304 Class Name - DBMS Instructor – Sanjay Madria Instructor – Sanjay Madria Lesson Title – ER Model.
UML Class Diagrams: Basic Concepts. Objects –The purpose of class modeling is to describe objects. –An object is a concept, abstraction or thing that.
01 November 2007Kaiser: COMS W4156 Fall COMS W4156: Advanced Software Engineering Prof. Gail Kaiser
COMS W4156: Advanced Software Engineering
1 © Prentice Hall, 2002 CMIS564: E/R Modeling Dr. Bordoloi Based on Chapter 3; Modern Database Management 6 th Edition Jeffrey A. Hoffer, Mary B. Prescott,
Chapter 3 Data Modeling Using the Entity-Relationship (ER) Model.
the Entity-Relationship Model
CONCEPTS OF E-R MODEL. CONTENTS Entity Attributes Data Value Entity Types Types of Entity Types Relationships Relationship Constraints.
Entities and Attributes
Lawrence ChungCS6359.0T1: Module 41 Module 4: Relationships.
Copyright © 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 7 Data Modeling Using the Entity- Relationship (ER) Model.
Training: INSPIRE Basics EC JRC 1/15 UML class diagram: example INSPIRE UML class diagram for administrative units.
Object Oriented Analysis & Design & UML (Unified Modeling Language)1 Part V: Design The Design Workflow Design Classes Refining Analysis Relationships.
Downloaded From:  Objective of this course is to make students familiar with the concepts of object-oriented programming  Concepts.
Object-Oriented Programming (OOP) Lecture No. 5. Multiple Inheritance ► We may want to reuse characteristics of more than one parent class.
7-1 © Prentice Hall, 2007 Chapter 7: Conceptual Data Modeling Object-Oriented Systems Analysis and Design Joey F. George, Dinesh Batra, Joseph S. Valacich,
Unit 3 Conceptual Data Modeling. Key Concepts Conceptual data modeling process Classes and objects Attributes Identifiers, candidate keys, and primary.
Unified Modeling Language © 2002 by Dietrich and Urban1 ADVANCED DATABASE CONCEPTS Unified Modeling Language Susan D. Urban and Suzanne W. Dietrich Department.
CS212: Object Oriented Analysis and Design Lecture 13: Relationship between Classes.
UML Class Diagram Trisha Cummings. What we will be covering What is a Class Diagram? Essential Elements of a UML Class Diagram UML Packages Logical Distribution.
UML Class Diagrams 1 These lecture slides are copyright (C) Marty Stepp, They may not be rehosted, sold, or modified without expressed permission.
BCS 2143 Object Oriented Design Using UML. Objectives Objects Interactions Finding Classes Relationship Between Classes Attribute and Operation Class.
CSC241 Object-Oriented Programming (OOP) Lecture No. 3.
ITEC 3220A Using and Designing Database Systems Instructor: Prof Z. Yang Course Website: 3220a.htm
Object Oriented Analysis: Associations. 2 Object Oriented Modeling BUAD/American University Class Relationships u Classes have relationships between each.
ITEC 3220A Using and Designing Database Systems Instructor: Gordon Turpin Course Website: Office: CSEB3020.
Object Oriented Analysis and Design Class and Object Diagrams.
Data Modeling Using the Entity-Relationship (ER) Data Model (Based on Chapter 3 in Fundamentals of Database Systems by Elmasri and Navathe, Ed. 3)
CSCI-383 Object-Oriented Programming & Design Lecture 10.
Copyright © Curt Hill Entities and Relationships The basics and what they have to do with database.
Object-Oriented Programming (OOP) Lecture No. 3 Downloaded From:
Database Design – Lecture 12 Object Oriented Database Design cont’d.
Data Modeling Using the Entity-Relationship (ER) Data Model.
CS212: Object Oriented Analysis and Design Lecture 33: Class and Sequence Diagram.
Data Modeling Using the Entity- Relationship (ER) Model.
Chapter 3: Data Modeling Using the Entity-Relationship (ER) Data Model
Association / Aggregation / Composition and inheritance
Chapter 5 System Modeling. What is System modeling? System modeling is the process of developing abstract models of a system, with each model presenting.
1 CSC241: Object Oriented Programming Lecture No 17.
CLASS DIAGRAMS A classy approach to objects. The Basic Class Diagram  Class Name  Attributes (- indicates private each would have properties or accessor/mutator.
 To explain why the context of a system should be modelled as part of the RE process  To describe behavioural modelling, data modelling and object modelling.
Class Diagram Lecture # 1. Class diagram A Class Diagram is a diagram describing the structure of a system shows the system's classes Attributes operations.
Object-Oriented Paradigm (OOP) Course Code: SE 101 Lecture No. 1.
25/2/16. Software Design (UML) ClassName attributes operations A class is a description of a set of objects that share the same attributes, Operations.
Distribution of Marks For Second Semester Internal Sessional Evaluation External Evaluation Assignment /Project QuizzesClass Attendance Mid-Term Test Total.
2-1 © Prentice Hall, 2004 Chapter 2: Introduction to Object Orientation Object-Oriented Systems Analysis and Design Joey F. George, Dinesh Batra, Joseph.
Comp 1100 Entity-Relationship (ER) Model
UML Class & Object Diagram I
Data Modeling Using the Entity- Relationship (ER) Model
ER model Ashima Wadhwa.
OBJECT ORIENTED CONCEPT
Abstract descriptions of systems whose requirements are being analysed
OBJECT RELATIONSHIPS, ATTRIBUTES, AND METHODS
UML Diagramming with Astah*
Software Engineering Lecture #11.
UML Class Diagram.
Understand and Use Object Oriented Methods
Systems Analysis – ITEC 3155 Modeling System Requirements – Part 2
ITEC 3220A Using and Designing Database Systems
Object-Oriented Programming (OOP) Lecture No. 5
Object Oriented Analysis and Design
Presentation transcript:

Downloaded From:

 We may want to reuse characteristics of more than one parent class Downloaded From:

Mermaid

Downloaded From: Mermaid WomanFish

Downloaded From: Amphibious Vehicle

Downloaded From: Amphibious Vehicle Land VehicleWater Vehicle Vehicle CarBoat

 Increased complexity  Reduced understanding  Duplicate features Downloaded From:

 Which eat operation Mermaid inherits? Downloaded From: Mermaid WomanFish eat … eat …

Downloaded From: Mermaid WomanFish eat … eat … eat … Invoke eat operation of desired class

 Which changeGear operation Amphibious Vehicle inherits? Downloaded From: Amphibious Vehicle Land VehicleWater Vehicle Vehicle CarBoat changeGear

 Some languages disallow diamond hierarchy  Others provide mechanism to ignore characteristics from one side Downloaded From:

 Objects in an object model interact with each other  Usually an object provides services to several other objects  An object keeps associations with other objects to delegate tasks Downloaded From:

 Class Association › Inheritance  Object Association › Simple Association › Composition › Aggregation Downloaded From:

 Is the weakest link between objects  Is a reference by which one object can interact with some other object  Is simply called as “association” Downloaded From:

 w.r.t navigation › One-way Association › Two-way Association  w.r.t number of objects › Binary Association › Ternary Association › N-ary Association Downloaded From:

 We can navigate along a single direction only  Denoted by an arrow towards the server object Downloaded From:

 Ali lives in a House Downloaded From: AliHouse lives-in 1 1

 Ali drives his Car Downloaded From: AliCar drives * 1

 We can navigate in both directions  Denoted by a line between the associated objects Downloaded From:

 Employee works for company  Company employs employees Downloaded From: EmployeeCompany works-for 1 *

 Yasir is a friend of Ali  Ali is a friend of Yasir Downloaded From: YasirAli friend 1 1

 Associates objects of exactly two classes  Denoted by a line, or an arrow between the associated objects Downloaded From:

 Association “works-for” associates objects of exactly two classes Downloaded From: EmployeeCompany works-for 1 *

 Association “drives” associates objects of exactly two classes Downloaded From: AliCar drives * 1

 Associates objects of exactly three classes  Denoted by a diamond with lines connected to associated objects Downloaded From:

 Objects of exactly three classes are associated Downloaded From: StudentTeacher Course 1 * *

 Objects of exactly three classes are associated Downloaded From: ProjectLanguage Person * 1 *

 An association between 3 or more classes  Practical examples are very rare Downloaded From:

 An object may be composed of other smaller objects  The relationship between the “part” objects and the “whole” object is known as Composition  Composition is represented by a line with a filled-diamond head towards the composer object Downloaded From:

Ali Body Arm Head Leg

Downloaded From: Chair SeatArm Back Leg

 Composition is a stronger relationship, because › Composed object becomes a part of the composer › Composed object can’t exist independently Downloaded From:

 Ali is made up of different body parts  They can’t exist independent of Ali Downloaded From:

 Chair’s body is made up of different parts  They can’t exist independently Downloaded From:

 An object may contain a collection (aggregate) of other objects  The relationship between the container and the contained object is called aggregation  Aggregation is represented by a line with unfilled-diamond head towards the container Downloaded From:

Room Cupboard Bed ChairTable * 1 1 1

Downloaded From: GardenPlant *

 Aggregation is weaker relationship, because › Aggregate object is not a part of the container › Aggregate object can exist independently Downloaded From:

 Furniture is not an intrinsic part of room  Furniture can be shifted to another room, and so can exist independent of a particular room Downloaded From:

 A plant is not an intrinsic part of a garden  It can be planted in some other garden, and so can exist independent of a particular garden Downloaded From: