23 lines
463 B
Markdown
23 lines
463 B
Markdown
|
# UML
|
||
|
|
||
|
```mermaid
|
||
|
classDiagram
|
||
|
class Product {
|
||
|
<<interface>>
|
||
|
+operation()
|
||
|
}
|
||
|
class ConcreteProductA {
|
||
|
+operation()
|
||
|
}
|
||
|
class ConcreteProductB {
|
||
|
+operation()
|
||
|
}
|
||
|
class SimpleFactory {
|
||
|
+createProduct(string) Product
|
||
|
}
|
||
|
Product <|.. ConcreteProductA
|
||
|
Product <|.. ConcreteProductB
|
||
|
SimpleFactory ..> Product
|
||
|
SimpleFactory ..> ConcreteProductA
|
||
|
SimpleFactory ..> ConcreteProductB
|
||
|
````
|