UML-diagrams Unified Modelling Language Used for Classes Objects.

Slides:



Advertisements
Similar presentations
UML and Classes, Objects and Relationships [1]
Advertisements

Lecture 10: Part 1: OO Issues CS 540 George Mason University.
C++ Classes & Data Abstraction
Objectives Introduction to Inheritance and Composition (Subclasses and SuperClasses) Overriding (and extending), and inheriting methods and constructors.
UML Class and Sequence Diagrams Violet Slides adapted from Marty Stepp, CSE 403, Winter 2012 CSE 403 Spring 2012 Anton Osobov.
Objects and Classes First Programming Concepts. 14/10/2004Lecture 1a: Introduction 2 Fundamental Concepts object class method parameter data type.
What is UML? A modeling language standardized by the OMG (Object Management Group), and widely used in OO analysis and design A modeling language is a.
Unified Modeling Language (UML)
IMSE 11 - UML Class Diagrams
UML Class Diagram: class Rectangle
Ch4: Software Architecture and Design. 1 The role of analysis and design  Software construction may be partitioned into the following phases:  Req.
1 Object-Oriented Modeling Using UML CS 3331 Fall 2009.
1 Review: Two Programming Paradigms Structural (Procedural) Object-Oriented PROGRAM PROGRAM FUNCTION OBJECT Operations Data OBJECT Operations Data OBJECT.
Unified Modeling Language
1 Chapter 5 Implementing UML Specification (Part I) Object-Oriented Technology From Diagram to Code with Visual Paradigm for UML Curtis H.K. Tsang, Clarence.
Using Jeroo To Teach Object-Oriented Concepts By Christian Digout.
Class Diagram.
BPJ444: Business Programming Using Java Classes and Objects Tim McKenna
12-CRS-0106 REVISED 8 FEB 2013 CSG2H3 Object Oriented Programming.
1 Java Inheritance. 2 Inheritance On the surface, inheritance is a code re-use issue. –we can extend code that is already written in a manageable manner.
Introduction to Java Class Diagrams. Classes class Account { … } Account.
Training: INSPIRE Basics EC JRC 1/15 UML class diagram: example INSPIRE UML class diagram for administrative units.
UML DIAGRAMS Unified Modeling Language for Object Oriented Programming Unified Modeling Language for Object Oriented Programming.
1 UML Basic Training. UML Basic training2 Agenda  Definitions: requirements, design  Basics of Unified Modeling Language 1.4  SysML.
Programming Languages and Paradigms Programming C++ Classes.
1 Class Diagrams: Advanced Concepts. 2 Overview Class diagrams are the most commonly used diagrams in UML. Class diagrams are the most commonly used diagrams.
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.
Object Oriented Analysis: Associations. 2 Object Oriented Modeling BUAD/American University Class Relationships u Classes have relationships between each.
CSE 403, Spring 2008, Alverson Using UML to express Software Architecture.
CSE 403, Spring 2007, Alverson Using UML to express Software Architecture.
UML Class Diagram. A class diagram shows 1.Classes 2.The relationships between them.
12 OBJECT-ORIENTED DESIGN CHAPTER
Chapter 3 Class Diagrams. 2 Outline Class Basics Class Basics Classes Classes Association Association Multiplicity Multiplicity Inheritance Inheritance.
UML Class Diagram notation Indicating relationships between classes SE-2030 Dr. Mark L. Hornick 1.
Topics Inheritance introduction
Class diagrams Terézia Mézešová.
Chapter 5 Classes and Methods II Lecture Slides to Accompany An Introduction to Computer Science Using Java (2nd Edition) by S.N. Kamin, D. Mickunas, E.
Chapter 2: Introduction to Object Orientation Object-Oriented Systems Analysis and Design Joey F. George, Dinesh Batra, Joseph S. Valacich, Jeffrey A.
Access Specifier. Anything declared public can be accessed from anywhere. Anything declared private cannot be seen outside of its class. When a member.
CLASS DIAGRAMS A classy approach to objects. The Basic Class Diagram  Class Name  Attributes (- indicates private each would have properties or accessor/mutator.
Java Programming, Second Edition Chapter Three Using Methods, Classes, and Objects.
Java Inheritance in Java. Inheritance Inheritance is a mechanism in which one object acquires all the properties and behaviors of parent object. The idea.
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.
TK2023 Object-Oriented Software Engineering CHAPTER 11 CLASS DIAGRAMS.
Class Diagrams Revisited. Parameterized Classes Parameterized Classes - are used to represent relationships between templates.
UML Review – class diagrams SE-2030 Dr. Mark L. Hornick 1.
Java Interfaces CS 21a: Introduction to Computing I Department of Information Systems and Computer Science Ateneo de Manila University (see Chapter 9 of.
2-1 © Prentice Hall, 2004 Chapter 2: Introduction to Object Orientation Object-Oriented Systems Analysis and Design Joey F. George, Dinesh Batra, Joseph.
COP 3330 Notes 4/13. Today’s Topics UML Class Diagrams.
Chapter 12 – Object-Oriented Design
Unified Modeling Language (UML)
UML - Class Diagrams.
Structural Modeling.
Unified Modeling Language
2.7 Inheritance Types of inheritance
UML - Unified Modeling Language
FUNDAMENTALS OF JAVA.
UML Class Diagram: class Rectangle
Object Oriented Analysis and Design
ניתוח מערכות מידע א' הרצאה 3
Software Engineering Lecture #11.
Practical Session 2 Class Design
Unified Modelling Language
Software Engineering System Modeling Extra examples Dr.Doaa Sami
Basics of OOP A class is the blueprint of an object.
Topics OOP Review Inheritance Review Abstract Classes
The Object Paradigm Classes – Templates for creating objects
INTERFACES Explained By: Sarbjit Kaur. Lecturer, Department of Computer Application, PGG.C.G., Sector: 42, Chandigarh.
Presentation transcript:

UML-diagrams Unified Modelling Language Used for Classes Objects

The Class Class-Name Attributes (Fields) Methods Car -noOfGears: int -nextSerialNo: int -speed: float +KM_PER_MILE +park():void +drive(): void +getSpeed(): float +setSpeed(): void -calcPetrolUsage(): float Legend: - private + public # protected static

Relations A ”uses” or ”knows” relation – relatively loose. An arrow may indicate direction. A ”has a” relation - aggregation (part of) or composition (only part of and common lifetime) Inheritance – ”is a” Interface – ”a contract”

Multiplicity Class 1 Attributes Methods Class 2 Attributes Methods M1 M2 M1 = Number of instances of class 1 that can relate to same instance of class 2 M2 = Number of instances of class 2 that can relate to same instance of class 1 Examples: 0..1Zero or one *Between zero and infinity 1..*From one to infinity 2,7Two or seven