60 likes | 184 Views
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
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