How to create class Diagram

Online E-commerce Website





In software engineering, a class diagram in the Unified Modeling Language (UML) is a type of static structure diagram that describes the structure of a system by showing the system's classes, their attributes, operations (or methods), and the relationships among objects.



In the diagram, classes are represented with boxes that contain three compartments:
  • The top compartment contains the name of the class. It is printed in bold and centered, and the first letter is capitalized.
  • The middle compartment contains the attributes of the class. They are left-aligned and the first letter is lowercase.
  • The bottom compartment contains the operations the class can execute. They are also left-aligned and the first letter is lowercase
  • To specify the visibility of a class member (i.e. any attribute or method), these notations must be placed before the member's name
    +Public
    -Private
    #Protected
    /Derived (can be combined with one of the others)
    ~Package
    *Random
    Document Download Link http://file-upload.com/d/ESsz

Comments