Professional Documents
Culture Documents
Recap:
Association
Class Diagrams
Generalization
Realization
Dependency
1 2
identify the system we are going to develop, including what it contains and met.
its business case.
perform detailed design and identify the foundation of system from “use
Inheritance
Polymorphism
the actual building of the product from the design of the system. components and events (asynchronous notifications),
Transition ( Rolling out phase): Deliver the system/ product to the and communicators (sockets).
users. Includes maintenance, upgrades, and so on until phasing out.
3 4
Class - The rectangle is the icon for the class. The ClassName
attr1:type1
name of the class is, by convention, a word with an attr1:type1 attr2:type2= “def ”
initial uppercase letter. It appears near the top of the attr2:type2= “def ”
rectangle. If your class name has more than one word operation1()
name, then join the words together and capitalize the operation2(args)
first letter of the every word. operation3() : ret type
Circle
Circle centreX:Int
centreX:Int centreY:Int= 0
centreY:Int= 0 draw()
move(Int X, Int Y)
7 8
public level +
A class may have zero or more attributes. A one-word attribute
name is written in lowercase letter. If the name consists of more
than one word, the words are joined and each word other than the
protected level #
first word begins with an uppercase letter. The list of attribute
names begins below a line separating them from the class name.
private level -
Circle
9 10
Visibility - Visibility applies to attributes or operations, A multiplicity in a class specifies the number of
and specifies the extent to which other classes can use instances (objects) of that class that can exist
a given class’s attributes or operations. Three levels of simultaneously.
visibility are possible (last symbols are used in UML
classes to indicate different levels of visibility): 1
private level - only the original class can use the (referred to as a singleton object).
attribute or operation - Default multiplicity is 0 or more (if not
specified)
11 12
Class - Implementation Objects: Instances of Classes
Bottom –
ObjectName:Packagename::ClassName
15 16
Generalization (inheritance)
Realization (interfaces)
17 18
Association - Example Association - Properties
Name
19 20
Name : “works for” Is the name of the relationship. Multiplicity on association specify properties of
the number of links that can exist between
Role : Person plays the role employee and the Company instances (objects) of the associated classes.
plays the role employer.
1 teaches 1..3
Teacher Course
Student Course
10..300 takes 1..5 1..5
takes
Students
10..300
23 24
Association
Association--Multiplicity
Multiplicity Association
Association--Multiplicity
Implementation
class Company{
Vector employee;
Summary
Recap:
Association
Generalization
Realization
Dependency
27