Created
April 1, 2021 20:19
-
-
Save gregori/89f2a7e7ae136fe4dc0c009dbb790f71 to your computer and use it in GitHub Desktop.
Simulado Revisão de Java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@startuml | |
skinparam classAttributeIconSize 0 | |
class Ponto { | |
-x: int = 0 | |
-y: int = 0 | |
+Ponto() | |
+Ponto(x: int, y: int) | |
+getX(): int | |
+getY(): int | |
+setX(x: int): void | |
+setY(y: int): void | |
+toString(): String | |
+distancia(x: int, y: int): double | |
+distancia(outro: Ponto): double | |
+distancia(): double | |
} | |
note right of Ponto::toString() | |
"(x, y)" | |
end note | |
note right of Ponto::"distancia(x: int, y: int)" | |
Distancia deste ponto para um dado | |
Ponto em (x, Y) | |
end note | |
note right of Ponto::"distancia(outro: Ponto)" | |
Distancia deste ponto para a instância de Ponto | |
end note | |
note right of Ponto::distancia() | |
Distancia deste Ponto para um ponto | |
em (0, 0); | |
end note | |
@enduml |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment