 Class and Diagram  Representation of Class Name Attributes Operations  Visibility of Attributes and Operations.

Slides:



Advertisements
Similar presentations
Object-oriented modeling Class/Object Diagrams
Advertisements

Introduction to UML. Acknowledgements Slides material are taken from different sources including: Slides material are taken from different sources including:
- 1 - © Houman Younessi 2010 MGMT Advanced Systems Analysis and Design A dvanced S ystems A nalysis and D esign Fall 2010 Convener: Houman Younessi.
The Unified Modeling Language
Modelling classes Drawing a Class Diagram. Class diagram First pick the classes –Choose relevant nouns, which have attributes and operations. Find the.
PRJ566: PROJECT PLANNING AND MANAGEMENT Class Diagrams.
UML Diagrams Computer Science I.
Lawrence ChungCS6359.0T1: Module 41 Module 4: Relationships.
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.
UML Diagrams: Class Diagrams The Static Analysis Model Instructor: Dr. Hany H. Ammar Dept. of Computer Science and Electrical Engineering, WVU.
CS3773 Software Engineering Lecture 04 UML Class Diagram.
The Static Analysis Model Class Diagrams Prof. Hany H. Ammar, CSEE, WVU, and Dept. of Computer Science, Faculty of Computers and Information, Cairo University.
Fall 2010 CS4310 Requirements Engineering A Brief Review of UML & OO Dr. Guoqiang Hu Department of Computer Science UTEP 1.
Class diagram Used for describing structure and behaviour in the use cases Provide a conceptual model of the system in terms of entities and their relationships.
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.
An Introduction to the Unified Modeling Language
Class Diagram Classes are the most important building block of any object-oriented system. A class is a description of a set of objects that share the.
Object Oriented Analysis: Associations. 2 Object Oriented Modeling BUAD/American University Class Relationships u Classes have relationships between each.
Class Modeling Design Class diagram. Classes The term “class ” refers to a group of objects that share a common attributes and common behaviour (operations).
Class diagrams Terézia Mézešová.
Entity Relationship Diagram (ERD). Objectives Define terms related to entity relationship modeling, including entity, entity instance, attribute, relationship.
Object Modeling THETOPPERSWAY.COM. Object Modelling Technique(OMT)  Building a model of an application domain and then adding implementation.
Class Diagrams Revisited. Parameterized Classes Parameterized Classes - are used to represent relationships between templates.
Lecture 13. Unified Modeling Language (UML) The first applications you wrote in CS201 were easy to think out and code with no intermediate steps. Lab.
1 IS 0020 Program Design and Software Tools Unified Modeling Language Lecture 13 November 30, 2004.
Software Modelling Class Diagram. Class Diagrams The main building block in object oriented modeling They are used both for general conceptual modeling.
CS 350 – Software Design UML – The Unified Modeling Language – Chapter 2 The Unified Modeling Language is a visual language used to create models of programs.
Entity Relationship (E-R) Model
Object-Orientated Analysis, Design and Programming
UML Diagrams: Class Diagrams The Static Analysis Model
Object-Oriented Modeling
UML-Class Diagrams. UML-Class Diagrams Order placement problem A Company has two types of customers, corporate customers and personal customers. All.
Entity-Relationship Model
Visit for more Learning Resources
Inheritance Allows extension and reuse of existing code
Class Diagrams.
EKT472: Object Oriented Programming
Entity-Relationship Model
Class diagram Description
UML Class & Object Diagram II
Entity-Relationship Model
University of Central Florida COP 3330 Object Oriented Programming
DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING
UML Unified Modelling Language
Software Engineering System Modeling Chapter 5 (Part 2) Dr.Doaa Sami
Software Engineering System Modeling Chapter 5 (Part 2) Dr.Doaa Sami
Seminar 4 UML Object Diagram.
Introduction to UML Introduction to UML Shiyuan Jin September,23,2002
What is an object? An object represents an individual, identifiable item, unit, or entity, either real or abstract, with a well-defined role in the.
Object Oriented Analysis and Design
Domain Class Diagram Chapter 4 Part 2 pp
Software Engineering Lecture #11.
Object Oriented Analysis and Design Using the UML
UML Class Diagram.
Database Systems: Design, Implementation, and Management Tenth Edition
Unified Modelling Language
Software Engineering System Modeling Extra examples Dr.Doaa Sami
Entity Relationship Model
Database Systems Instructor Name: Lecture-9.
Class Diagrams Class diagram is basically a graphical representation of the static view of the system and represents different aspects of the application.
Entity-Relationship Diagram (ERD)
Class Diagram.
CSE470 Software Engineering UML Lecture.  UML resource page
Object Oriented System Design Class Diagrams
Object Oriented Design & Analysis
Information System Design
UML  UML stands for Unified Modeling Language. It is a standard which is mainly used for creating object- oriented, meaningful documentation models for.
Chapter 11: Class Diagram
Presentation transcript:

 Class and Diagram  Representation of Class Name Attributes Operations  Visibility of Attributes and Operations

 Relationship or Notation of class diagram  Generalization  Association  Composition  Aggregation

 Used for describing structure and behaviour in the use cases.  Provide a conceptual model of the system in term of entities and their relationship.

The top part contain the name of the class. It is printed in Bold, centred and the first letter capitalized.

The middle part contains the attributes of the class. They are left aligned and the first letter is lower case.

The bottom parts gives the methods or operations the class can take or undertake. They are also left aligned and the first letter is lower case.

 “+” is used to denoted Public visibility (everyone)  “#” is used to denoted Protected visibility (friends and derived)  “-” is used to denoted Private visibility (no one)

 By default, attributes are hidden and operations are visible.  The last two compartments may be omitted to simplify the class diagrams

Account Name -Customer Name - Balance +add Funds() +with Draw() +transfer() Name Attributes Operations

There are two kinds of Relationships  Generalization (parent-child relationship)  Association (student enrols in course) Association can be further classified as  Aggregation  Composition

 Generalization express a parent/child relationship among related classes.  Used for abstracting detail is several layers Example Super type supertype1 supertype2

Association represent relationship between instances of class. An association is a link connecting two classes. Bi-directional association Association are assumed to be bi- directional e.g. Flight and place Notation:

Uni-directional association e.g. Order and item Notation:

EXAMPLE: Student Department Course

 Composition: express a relationship among instances of related classes. It is specific kind of Whole-Part relationship  It expresses a relationship where an instance of the whole-class has the responsibilities to create and initialize instances of each Part-class.

EXAPMPLE OF COMPOSITION Legs Hands Person Automobile Engine Transmission

 Aggregation: express a relationship among instances of related classes. It is a specific kind of Container Containee relationship.  It express a relationship where an instance of the Container-class has the responsibility to hold and maintain instances of each Containee-class that have been created outside the auspices of the Container-class.

EXAMPLE OF AGGREGATION Employee Company

THANK YOU