UML Learning (1) class diagram and object Diagram

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.