Association / Aggregation / Composition and inheritance

Slides:



Advertisements
Similar presentations
1.8 Combinations of Functions: Composite Functions The composition of the functions f and g is “f composed by g of x equals f of g of x”
Advertisements

Liang, Introduction to Java Programming, Sixth Edition, (c) 2007 Pearson Education, Inc. All rights reserved Chapter 11 Object-Oriented.
Jan 2003Ron McFadyen Generalization (Ch 26) a generalization is a relationship between a general thing (the superclass or parent class) and a.
Liang, Introduction to Java Programming, Sixth Edition, (c) 2007 Pearson Education, Inc. All rights reserved Chapter 1 Object-Oriented.
Liang,Introduction to Java Programming,revised by Dai-kaiyu 1 Chapter 10 Object-Oriented Modeling.
7M701 1 Class Diagram advanced concepts. 7M701 2 Characteristics of Object Oriented Design (OOD) objectData and operations (functions) are combined 
1 Object-Oriented Design. 2 Objectives F To become familiar with the process of program development. F To the relationship types: association, aggregation,
Developing an IT Application Using Advantage:Gen  Data Modeling: I-bars and subtypes.
7M822 UML Class Diagrams advanced concepts 15 September 2008.
The OOA Process - I Steps and Rules Objects and Structures.
1 Data Modelling Which data to include in the database.
The Unified Modeling Language (UML) Class Diagrams.
Liang, Introduction to Java Programming, Seventh Edition, (c) 2009 Pearson Education, Inc. All rights reserved Chapter 12 Object-Oriented Design.
UML Unified Modeling Language. What is UML? Unified Modeling Language (UML) is a standardized, general-purpose modeling language in the field of software.
OBJECT ORIENTED PROGRAMMING LECTURE 12 Instructor: Rashi Garg Coordinator: Gaurav Saxena.
1 A Student Guide to Object- Orientated Systems Chapter 4 Objects and Classes: the basic concepts.
OBJECT AND CLASES: THE BASIC CONCEPTS Pertemuan 8 Matakuliah: Konsep object-oriented Tahun: 2009.
Training: INSPIRE Basics EC JRC 1/15 UML class diagram: example INSPIRE UML class diagram for administrative units.
UML Diagrams: Class Diagrams The Static Analysis Model Instructor: Dr. Hany H. Ammar Dept. of Computer Science and Electrical Engineering, WVU.
R McFadyen Chapter 7 Conceptual Data Modeling.
Object-Oriented Software Development F Software Development Process F Analyze Relationships Among Objects F Class Development F Class Design Guidelines.
Domain Modeling Part2: Domain Class Diagram Chapter 4 pp part 2 1.
Liang, Introduction to Java Programming, Sixth Edition, (c) 2007 Pearson Education, Inc. All rights reserved Chapter 11 Object-Oriented.
The Static Analysis Model Class Diagrams Prof. Hany H. Ammar, CSEE, WVU, and Dept. of Computer Science, Faculty of Computers and Information, Cairo University.
UML Diagrams: The Static Model Class Diagrams. The Static Model Define the static structure of the logical model Represent classes, class hierarchies.
Chapter 11 & 12 Entity-Relationship (E-R) Model Characteristics of E-R Model Components of E-R Model Example of E-R Model Enhanced E-R Model.
1 CMPT 275 Software Engineering Requirements Analysis Phase Requirements Analysis activity Janice Regan,
1 CS 430 Database Theory Winter 2005 Lecture 15: How to Convert an ER Model to Relations.
Class Modeling Design Class diagram. Classes The term “class ” refers to a group of objects that share a common attributes and common behaviour (operations).
LESSON05 Jerry Kotuba Object Oriented Methodologies 1.
UML Class Diagram. A class diagram shows 1.Classes 2.The relationships between them.
Database Design – Lecture 12 Object Oriented Database Design cont’d.
Chapter 12 Object-oriented design for more than one class.
Liang, Introduction to Java Programming, Sixth Edition, (c) 2007 Pearson Education, Inc. All rights reserved Chapter 11 Object-Oriented.
Liang, Introduction to Java Programming, Sixth Edition, (c) 2007 Pearson Education, Inc. All rights reserved Object-Oriented Design.
Class diagrams Terézia Mézešová.
Sept 2004Ron McFadyen Generalization (Ch 26) a generalization is a relationship between a general thing (the superclass or parent class) and a.
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.
2007ACS Ron McFadyen1 Aggregation and Composition both are associations used to denote that an object from one class is part of an object of another.
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 Methodologies
Class Diagram Slide 1 1. Objective  Introduces the evolutionary approach for building classes  Explain how to identify objects and attributes of classes.
11/06/ أساسيات الأتصال و الشبكات Communication & Networks Fundamentals lab 5.
Software Modelling Class Diagram. Class Diagrams The main building block in object oriented modeling They are used both for general conceptual modeling.
UML Class & Object Diagram II RELATIONS UML Class Diagram & Object Diagram II, Jan Pettersen Nytun, page no 1.
Object-Orientated Analysis, Design and Programming
UML Diagrams: Class Diagrams The Static Analysis Model
Lec-4 : Unified Modeling Language (UML)
OBJECT ORIENTED CONCEPT
EKT472: Object Oriented Programming
Module 7: Managing Access to Objects in Organizational Units
Class diagram Description
UML Class & Object Diagram II
UML Diagrams: The Static Model Class Diagrams
Object Oriented Analysis and Design
کـورس ارتـباط کارکـنان
Software Engineering Lecture #11.
Class Diagram Slide 1.
Class Diagram Slide 1.
Software Engineering Lecture 10.
Understand and Use Object Oriented Methods
Chapter 2 Underpinnings of Requirements Analysis
Object-Oriented Programming (OOP) Lecture No. 5
Class Diagrams Defines Graph Structures 2014
Chapter 10 Thinking in Objects Part 1
Information System Design
a generalization is a relationship between a general thing (the
Software Design Lecture : 36.
Legacy Databases.
Presentation transcript:

Association / Aggregation / Composition and inheritance

Association Relationship where all object have their own lifecycle and there is no owner. Ex: Airplane and passengers. No ownership between the objects and both have their own lifecycle. Both can create and delete independently

Aggregation Special form of Association where all object have their own lifecycle but there is ownership ( Has a relationship) and child object can not belongs to another parent object. Ex: Department and teacher. A single teacher can not belongs to multiple departments, but if we delete the department teacher object will not destroy.

Composition Special form of Aggregation . Child object dose not have their lifecycle and if parent object deletes, all child object will also be deleted (ownership). Ex : Person and hands.

Inheritance : ”is” relationship An employee is a person

Association No ownership Own lifecycle Aggregation Ownership ( has a..) Composition Ownership (composed of ..) No Own lifecycle Inheritance Is relationship

Association An association is usually represented as a data field in the class.

Representing Aggregation/composition in Classes An aggregation / composition relationship is usually represented as a data field in the aggregated class.

Inheritance Inheritance models the is-an-extension-of relationship between two classes.

Borrowing Loans Name Loan Person Borrower Address