60 likes | 191 Views
Class diagrams play a crucial role in the analysis, design, and implementation phases of object-oriented systems. They serve as structural models that enhance information content as the project evolves from analysis to design and implementation. Key concepts include the importance of information hiding through visibility modifiers, the meticulous naming of relationships for clarity, and the strategic representation of collections, such as handling books or students in a system. This guide explores essential class diagram components, the significance of relationships, and best practices for effective modeling.
E N D
Something about classes: • Classes Diagrams are for: • analysis • design • implementation • Class Diagram is a structural model • Class Diagrams have low information content at analysis • Class Diagrams have hight information content at design and implementation.
1 OO wants information hiding '–' (private) instead of '+'(public) 1 What's your comment on this one? Are all the compositions right / needed? Does product represent a group? Or do you want to store all objects of a product?
What's your comment on this one? Naming a relationship would be clearer Gives a Stereotyping own Datatype (not a fault) ORDER Classnames are In singular
Suppose you want to store books in a booksystem. • Do you want to • store every book (copy)? • store only the title?
Suppose we want to add students to a system There is no: Number_of_students!! We can count them, or ….....
Use a static attribute: every object shares this attibute Classifiers scope