ClassShow classes, their members, and the relationships between them.Copy MarkdownView MarkdownEdgesSeveral relations into one classOpen in PlaygroundfearshuntsAnimalTurtleSharkWhaleHabitatWide inheritanceOpen in PlaygroundShapeCircleSquareTriangleHexagonEllipseDiamondTrapezoidCanvasDocumentation examples1. classDiagram · note "From Duck till Zebra"Open in PlaygroundAnimal exampleAnimal+int age+String gender+isMammal()+mate()Duck+String beakColor+swim()+quack()Fish-int sizeInFeet-canEat()Zebra+bool is_wild+run()From Duck till Zebracan flycan swimcan divecan help in debugging2. classDiagram · class Customer {Open in Playgroundplacescontainssettled by1*1*Customer+String name+String emailOrder+String id+Date placedAt+total() : MoneyLineItem+int quantity«interface»Payment+authorize() : bool3. classDiagram · class Customer {Open in Playgroundplacescontainssettled by1*1*Customer+String name+String emailOrder+String id+Date placedAt+total() : MoneyLineItem+int quantity«interface»Payment+authorize() : bool4. classDiagram · class BankAccountOpen in PlaygroundBank exampleBankAccount+String owner+Bigdecimal balance+deposit(amount)+withdrawal(amount)5. classDiagram · class AnimalOpen in PlaygroundAnimalVehicleCar6. classDiagram · class Animal["Animal with a label"]Open in PlaygroundAnimal with a labelCar with *! symbols7. classDiagram · class `Animal Class!`Open in PlaygroundAnimal Class!Car Class8. classDiagram · class BankAccountOpen in PlaygroundBankAccount+String owner+BigDecimal balance+deposit(amount)+withdrawal(amount)9. classDiagram · class BankAccount{Open in PlaygroundBankAccount+String owner+BigDecimal balance+deposit(amount)+withdrawal(amount)10. classDiagram · class BankAccount{Open in PlaygroundBankAccount+String owner+BigDecimal balance+deposit(amount) : bool+withdrawal(amount) : int11. classDiagram · class Square~Shape~{Open in PlaygroundSquare<Shape>int idList<int> position-List<string> messagessetPoints(List<int> points)getPoints() : List<int>+setMessages(List<string> messages)+getMessages() : List<string>+getDistanceMatrix() : List<List<int>>12. classDiagram · classA <|-- classBOpen in PlaygroundclassAclassBclassCclassDclassEclassFclassGclassHclassIclassJclassKclassLclassMclassNclassOclassP13. classDiagram · classA --|> classB : InheritanceOpen in PlaygroundInheritanceCompositionAggregationAssociationLink(Solid)DependencyRealizationLink(Dashed)classAclassBclassCclassDclassEclassFclassGclassHclassIclassJclassKclassLclassMclassNclassOclassP14. classDiagram · classA <|-- classB : implementsOpen in PlaygroundimplementscompositionaggregationclassAclassBclassCclassDclassEclassF15. classDiagram · Animal <|--|> ZebraOpen in PlaygroundAnimalZebra16. classDiagram · bar ()-- fooOpen in Playgroundfoobar17. classDiagram · class Class01 {Open in PlaygroundClass01int amountdraw()Class02barbarfoo18. classDiagram · namespace BaseShapes {Open in PlaygroundBaseShapesTriangleRectangledouble widthdouble height19. classDiagram · namespace Auth["Authentication Service"] {Open in PlaygroundAuthentication ServiceUserService+login()+logout()20. classDiagram · namespace Company.Engineering.Backend {Open in PlaygroundCompanyEngineeringBackendFrontendleadsleadsDeveloper+writeCode()Designer+createMockup()TechLead+planSprint()CompanyEngineeringFrontendBackendBackendleadsleadsDeveloper+writeCode()Designer+createMockup()TechLead+planSprint()21. classDiagram · namespace Platform {Open in PlaygroundPlatformAuthDatadelegatesdelegatesUserService+login()+logout()Repository+find()+save()Gateway+route()22. classDiagram · namespace Company.Engineering.Backend {Open in PlaygroundCompanyCompany.Engineering.BackendCompany.Engineering.BackendCompany.Engineering.FrontendCompany.Engineering.FrontendoverseesoverseesDeveloper+writeCode()Designer+createMockup()CEO+makeDecisions()23. classDiagram · Customer "1" --> "*" TicketOpen in PlaygroundContains1*11..*manyCustomerTicketStudentCourseGalaxyStar24. classDiagram · class Shape <<interface>>Open in Playground«interface»Shape25. classDiagram · class ShapeOpen in Playground«interface»ShapenoOfVerticesdraw()26. classDiagram · class Shape{Open in Playground«interface»ShapenoOfVerticesdraw()«enumeration»ColorREDBLUEGREENWHITEBLACK27. classDiagram · class Shape{Open in Playground«interface»ShapenoOfVerticesdraw()28. classDiagram · direction RLOpen in Playgroundcarriesrides1111Student-idCard : IdCardIdCard-id : int-name : stringBike-id : int-name : stringcarriesrides1111Student-idCard : IdCardIdCard-id : int-name : stringBike-id : int-name : string29. classDiagram · note "This is a general note"Open in PlaygroundMyClassThis is a general noteThis is a note for a class30. classDiagram · class ShapeOpen in PlaygroundThis is a tooltip for a linkShapeThis is a tooltip for a linkShape231. classDiagram · class ShapeOpen in PlaygroundThis is a tooltip for a callbackShapeThis is a tooltip for a callbackShape232. classDiagram · class Class01Open in PlaygroundCallback tooltipClass01This is a linkClass02Callback tooltipClass03This is a linkClass0433. classDiagram · class AnimalOpen in PlaygroundAnimalMineral34. classDiagram · class Animal:::someclassOpen in PlaygroundAnimal35. classDiagram · class Animal:::someclass {Open in PlaygroundAnimal-int sizeInFeet-canEat()36. classDiagram · class Animal:::pinkOpen in PlaygroundAnimalMineral37. classDiagram · class Animal:::styleClassOpen in PlaygroundAnimal38. classDiagram · class DuckOpen in PlaygroundDuck