测试

s e q u e n c e D i a g r a m A n i m a l < ∣ − − D u c k A n i m a l < ∣ − − F i s h A n i m a l < ∣ − − Z e b r a A n i m a l : + i n t a g e A n i m a l : + S t r i n g g e n d e r A n i m a l : + i s M a m m a l ( ) A n i m a l : + m a t e ( ) c l a s s D u c k + S t r i n g b e a k C o l o r + s w i m ( ) + q u a c k ( ) c l a s s F i s h − i n t s i z e I n F e e t − c a n E a t ( ) c l a s s Z e b r a + b o o l i s w i l d + r u n ( ) sequenceDiagram Animal <|-- Duck Animal <|-- Fish Animal <|-- Zebra Animal : +int age Animal : +String gender Animal: +isMammal() Animal: +mate() class Duck{ +String beakColor +swim() +quack() } class Fish{ -int sizeInFeet -canEat() } class Zebra{ +bool is_wild +run() } sequenceDiagramAnimal<DuckAnimal<FishAnimal<ZebraAnimal:+intageAnimal:+StringgenderAnimal:+isMammal()Animal:+mate()classDuck+StringbeakColor+swim()+quack()classFishintsizeInFeetcanEat()classZebra+booliswild+run()

你可能感兴趣的:(测试)