@startuml skinparam classAttributeIconSize 0 class CrewMember { - name: String - position: String - rank: String - species: String - assignment: String + <> CrewMember(name: String, position: String, rank: String, species: String, assignment: String) + <> CrewMember(name: String, position: String, rank: String, species: String) + toString(): String + getName(): String + setName(name: String) + getPosition(): String + setPosition(position: String) + getRank(): String + setRank(rank: String) + getSpecies(): String + setSpecies(species: String) + getAssignment(): String + setAssignment(assignment: String) } skinparam classAttributeIconSize 0 class Starship { - name: String - registry: String - starshipClass: String - crew: ArrayList + <> Starship(name: String, registry: String, starshipClass: String) + toString(): String + addCrewMember(crewMember: CrewMember) + getNumberOfPersonnel(): Integer + getName(): String + setName(name: String) + getRegistry(): String + setRegistry(registry: String) + getCrew(): ArrayList + setCrew(crew: ArrayList) + getStarshipClass(): String + setStarshipClass(starshipClass: String) } skinparam classAttributeIconSize 0 class Fleet { - name: String - starships: ArrayList + <> Fleet(name: String) + toString(): String + getSizeOfFleet(): Integer + addStarship(starship: Starship) + getName(): String + setName(name: String) + getStarships(): ArrayList + setStarships(starships: ArrayList) + loadStarships(starshipsDirectory: String) } skinparam classAttributeIconSize 0 class Lab2 { + _ main(args: String[]): void } Fleet o-- Starship Starship o-- CrewMember Lab2 ..|> Fleet @enduml