Docsity

java programming and object orianted, Summaries of Java Programming

Partial preview of the text

Download java programming and object orianted and more Summaries Java Programming in PDF only on Docsity!

Advanced Programming

 UML Class Diagram

Hello!

I am Hamzeh Asefan

Master Degree from King Abdullah II School of Information Technology in Information Systems ( 2020 / 2021 ) / The University of Jordan.

“UML is a modern approach to modeling and documenting software. By using visual representations, we are able to better understand possible flaws or errors in software or business processes.”

  1. UML Class Diagram Describes the structure of a system by showing the system's classes, their attributes, methods, and the relationships.

Visual Paradigm

✘ Is a UML CASE Tool. ✘ Powerful visual modeling tools that helps you build and manage your diagrams and model elements. ✘ Community Edition: a free edition for non-commercial use only, supports all 14 UML diagram types (Class diagram, Use case diagram, Sequence diagram, Object diagram, …).

Class Name Attributes Methods

Example

Example

Generate Code

Visibility

Visibility Private Public Package Protected Symbol

**-

~ #**

  1. Relationships In UML, the ways that things can connect to one another, either logically or physically, are modelled as relationships.

Relationships

1 2 3

Dependencies

✘ Show that one class uses another class as an argument in the signature of an operation. ✘ Create a dependency pointing from the class with the operation to the class used as a parameter in the operation.

Dependencies Example

Dependencies Example

DAO (EmpDAO.java)

Dependencies Example

DAO (EmpDAO.java)