Uml Class Diagram Attribute Types. The class diagram is the main building block of object oriented modeling. The class shape itself in an uml is shaped out inside a rectangle with three distinct rows.
A primitive type has the keyword primitive above or before the name of the primitive type. Class diagram is one of the types of uml diagram which is used to represent the static diagram by mapping the structure of the systems using classes attributes relations and operations between the various objects. Class diagram has the various classes each has three part first partition contains class name which is the name of the class or entity which is participated in the activity second partition contains class attributes shows the various properties of class third partition.
Instances of primitive types do not have identity.
The unified modeling language uml can help you model systems in various ways. Class diagram is one of the types of uml diagram which is used to represent the static diagram by mapping the structure of the systems using classes attributes relations and operations between the various objects. Attributes are shown in the second partition. Uml defines the primitive types integer boolean string unlimitednatural and real in chapter 21 of the specification.