From 6160ce2ce1a350491e948dc1976e14807a1bd63d Mon Sep 17 00:00:00 2001 From: andreguiot Date: Mon, 30 Jun 2025 20:50:22 -0300 Subject: [PATCH] Adicionando Markdown para prova The Boys (Mermaid) --- avaliacoes/the-boys/model/theBoys.md | 54 ++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 avaliacoes/the-boys/model/theBoys.md diff --git a/avaliacoes/the-boys/model/theBoys.md b/avaliacoes/the-boys/model/theBoys.md new file mode 100644 index 0000000..2d48917 --- /dev/null +++ b/avaliacoes/the-boys/model/theBoys.md @@ -0,0 +1,54 @@ +```mermaid +classDiagram + class Person { + -name: String + -surname: String + } + + class Hero { + -nickname: String + -energy: int + -strength: int + -speed: int + } + + class Team { + -heroes: List~Hero~ + } + + class Homelander + class Starlight + + class BasicPower~T~ { + <> + +activateDurability(hero: T): void + +giveStrength(hero: T): void + +maxSpeed(hero: T): void + +fly(hero: T): void + } + + class SpecialPower~T~ { + <> + +usePower(hero: T): void + } + + class HeroCompoundV + + %% --- Relacionamentos --- + + %% Herança + Person <|-- Hero + Hero <|-- Homelander + Hero <|-- Starlight + + %% Associação (Agregação) + Team "1" o-- "0..*" Hero : heroes + + %% Implementação + BasicPower <|.. HeroCompoundV + SpecialPower <|.. HeroCompoundV + + %% Dependência + Homelander ..> HeroCompoundV + Starlight ..> HeroCompoundV +```