Initial commit
This commit is contained in:
23
diagrammer/ex4/Person.wsd
Normal file
23
diagrammer/ex4/Person.wsd
Normal file
@@ -0,0 +1,23 @@
|
||||
@startuml Person
|
||||
|
||||
class objectstructures.Person {
|
||||
-name: String
|
||||
-gender: char
|
||||
-children: List<Person>
|
||||
-mother: Optional<Person>
|
||||
-father: Optional<Person>
|
||||
+getGender(): char
|
||||
+getChildren(): Collection
|
||||
+getChildCount(): int
|
||||
+getChild(int n): Person
|
||||
+getMother(): Person
|
||||
+getFather(): Person
|
||||
+addChild(Person child): void
|
||||
+setFather(Person father): void
|
||||
+setMother(Person mother): void
|
||||
+removeChild(Person child): void
|
||||
+getName(): String
|
||||
-setParent(Person newParent, Optional<Person> currentParent, char gender): void
|
||||
}
|
||||
|
||||
@enduml
|
||||
Reference in New Issue
Block a user