Roles represent the way the two classes see each other. Place roles near the end of an association. Use a filled arrow to indicate the direction of the relationship. Place association names above, on, or below the association line. AssociationsĪssociations represent static relationships between classes. Protected visibility, denoted with a # sign, allows child classes to access information they inherited from a parent class. Public visibility, denoted with a + sign, allows all other classes to view the marked information. Private visibility, denoted with a - sign, hides information from anything outside the class partition. Use visibility markers to signify who can access the information contained within a class. Illustrate active classes with a thicker border. Active ClassesĪctive classes initiate and control the flow of activity, while passive classes store data and serve other classes. Place the name of the class in the first partition (centered, bolded, and capitalized), list the attributes in the second partition (left-aligned, not bolded, and lowercase), and write operations into the third. Illustrate classes with rectangles divided into compartments. Associations represent the relationships between classes. Basic Class Diagram Symbols and Notations ClassesĬlasses represent an abstraction of entities with common characteristics.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |