软件工程类图_类图| 软件工程

软件工程类图

Classes are used to represent the object-oriented models. As we know that in the OOPs structure, every entity is treated as an object. A class thus can be defined as a collection of objects that share the common properties and behavior.

用于表示面向对象的模型。 众所周知,在OOPs结构中,每个实体都被视为一个对象。 因此,一个类可以定义为共享共同属性和行为的对象的集合。

The Class diagram of the software consists of all the classes that exist in the software. In the class diagram, a class is represented via a rectangular box. Each of the classes is divided into three sections. The topmost section consists of the class name. The second section consists of the names of all the attributes that the class contains with their data types. And the third section consists of the methods (or functions) that are defined in the class. (It must be noted that the section of attributes and methods can be empty, but the class name cannot.)

软件的类”图由软件中存在的所有类组成。 在类图中,通过一个矩形框表示一个类。 每个类分为三个部分。 最上面的部分由类名称组成。 第二部分包括该类包含的所有属性及其数据类型的名称。 第三部分由类中定义的方法(或函数)组成。 (必须注意,属性和方法部分可以为空,但类名称不能为空。)

For example: Consider a class named “books” which has some attributes and methods. The class diagram for this very class would look something like this:

例如:考虑一个名为“ books”的 ,它具有一些属性和方法。 该类的类图如下所示:

Image source: https://wcs.smartdraw.com/class-diagram/img/notes.jpgn=1510011152

Example:

例:

Let us consider the example of the library management system. The following is the class diagram for the same.

让我们考虑图书馆管理系统的示例。 以下是相同的类图。

It consists of nine classes that are interconnected. The relations and cardinality of each of them can also be inferred from the class diagram itself.

它由九个相互关联的类组成。 它们每个的关系和基数也可以从类图本身推断出来。

The class diagram in SE (3)

Class Diagram for library management System

图书馆管理系统的类图

翻译自: https://www.includehelp.com/basics/the-class-diagram-software-engineering.aspx

软件工程类图

文章知识点与官方知识档案匹配,可进一步学习相关知识Java技能树首页概览91438 人正在系统学习中 相关资源:LibraryO:图书图书馆软件。-开源_图书馆开源项目-其它代码类资源…

声明:本站部分文章及图片源自用户投稿,如本站任何资料有侵权请您尽早请联系jinwei@zod.com.cn进行处理,非常感谢!

上一篇 2020年6月15日
下一篇 2020年6月15日

相关推荐