Professional Documents
Culture Documents
3
1.
Unified Modeling Language
CLASS
4
UML
Unified Modeling Language
o It is an industry-standard graphical language, specifying, visualizing, constructing and documenting
the artifacts of software system.
o UML combines technique from;
• Object modeling
• Data modeling
• Business modeling
• Component Modeling
Modeling is a diagram with graphical representation of system model, UML diagram represent two
different views of system model;
1. Static (Structural Model)
2. Dynamic (Behavioral Model)
5
UML
Modeling
1. Static or Structural View – the view emphasizes the static structure of a
system using objects, attributes, operations and relationship.
Example is Class Diagram
2. Dynamic or Behavioral View – the view emphasizes the dynamic behavior of
the system by showing collaboration among object and changes to the
internal states of object.
Example: Sequence diagram, Activity diagram, State diagram and
Use Case diagram.
6
UML Class Diagram
Behaviors (Methods)
8
UML Class Diagram
9
UML Class Diagram
Animal
CLASS NAME
- name: String;
- age: int;
VISIBILITY - weight: float;
+ setName();
+ getName();
+ setAge(); ATTRIBUTES OF THE
+ getAge(); CLASS
+ setWeight();
+ getWeight(); METHODS
10
UML Class Diagram
GENERALIZATION / INHERITANCE
Known as an “is a” relationship since the child class is a type of the parent class. Generalization is
the ideal type of relationship that is used to showcase reusable elements in the class diagram.
Literally, the child classes “inherit” the common functionality defined in the parent class.
11
UML Class Diagram <<Animal>>
- name: String;
- age: int;
- weight: float;
SUB CLASS /
SUPER CLASS / CHILD CLASS
PARENT CLASS
+eat();
Generalization /
Inheritance
+playDead();
12
UML Class Diagram
13
UML Class Diagram
Aggregation
14
UML Class Diagram
Composition
The composition is a
variation of the
aggregation relationship.
Composition illustrates
that a strong life cycle is
present between the
classes.
15
UML Class Diagram
Multiplicity
16
UML Class Diagram
17
2.
Review of OOP CONCEPTS
Inheritance, Abstraction, Encapsulation, Polymorphism
18
Review of OOP Concepts
Inheritance Abstraction
Is a mechanism in which one Is a process of hiding the
object acquires all the properties implementation details and
and behaviors of a parent object. showing only functionality to the
user.
Represent an “Is A” and “Has A”
relationship
19
Review of OOP Concepts
Polymorphism Encapsulation
Is a concept by which we can Is a process of writing code and
perform a single action in data together into single unit.
different ways. Derived in Greek We can create a fully
words poly and morphs. Poly encapsulated class in Java by
means many and morphs means making all the data members of
many forms. the class private. We can use the
setter and getter methods to
set and get the data in it.
20
thanks!
Any questions?
21
hello!
I am Jeremy
For any inquiry feel free to contact me @
jeremyreyes33218@gmail.com
22