Formally Depicting Classes, Relationships, Objects, and Links
Classes and Objects are depicted as 3 drawer rectangles. (Only the first drawer is required.) In the top drawer appears the name of the class, and if the class is inherited from other base classes, the name of the class is appended to the other classes separated by colons. The figure on the left shows a well-defined class.
The second âdrawerâ contains the attributes of the class. These attributes may or may not be hidden from the clients of that class. If hidden, they may be obtained using methods that set and get those attributes and protect them from unintended or forbidden manipulation. In the class diagram, the type of the attribute variables is defined, as well as their initialization valu View the rest of this article
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment