We can specify class extension using the symbol <|--
classExtension.txt
@startuml title "Class Inheritance or extension" abstract class Mammal Class Dog class BullDog class Poodle class Beagle class Cat class PersianCat class Ragdoll Mammal <|-- Cat Mammal <|-- Dog Dog <|-- BullDog Dog <|-- Poodle Dog <|-- Beagle Cat <|-- PersianCat Cat <|-- Ragdoll @enduml
Above snippet generate below diagram.
No comments:
Post a Comment