An object is a concept, an abstraction or a thing. Objects can be practical or abstract concepts. For example, a company or a process.
A class is a set or abstract concept of a group of objects. The class has the same attributes and methods.
This section describes the basic concepts of basic objects and classes. It is necessary to describe how to represent objects and classes in UML, that is, how to draw objects and class diagrams. This is just a general convention,Words of the family.
Class Diagram: Provides a graphical representation of modeling classes and their relationships, so it also describes possible objects.
Class chart Representation Method: A box with the class name,AttributeAndMethodSeparated by a horizontal line.
Attribute Representation Method: property name: TYPE = default value.
Method: Method Name (parameter name 1: Type 1, parameter name 2: type): return type.
Object Graph: Displays individual objects and their relationships.
Object Graph Representation Method: A box with the object name followed by a colon and class name. The object name and class name both have underscores or spaces, and the representation of attributes and methods andClass DiagramSame.
BelowPersonClass instance:
UML Learning (1) class diagram and object Diagram