I started learning Enterprise Java with UML today.

xiaoxiao2021-03-06  102

The software project management course is over, and now my project has not started, I decided to start the project now.

The following is some knowledge about UML (graphics can't be posted)

Dependencies are the weakest relationship between objects. An object relies on another object refers to this object and there is a short-term relationship between it. In this short relationship, the dependent object acquires the service it provides by calling the dependent object, or to configure the dependent object.

In an object-oriented system, dependency has some universal modes. As part of the method, an object may create another object, let it perform a certain function, and then no longer take it. The association is a long-term relationship between objects. In the association, an object retains a reference to another object and calls this object when needed. The aggregation relationship indicates that an object is a larger part of the whole. This object that is included may participate in multiple aggregation relationships, and exist independently relative to the whole. The combination relationship indicates that an object is owned by another larger overall. This contained object may not participate in more combination and cannot be independent of this overall. This section is created when you created, and destroyed during the overall destruction. According to the UML specification, associated lines without arrows should mean that this navigation relationship is undetermined.

The interface defines a set of related behavior, but does not specify the details of these behaviors. In more detail, each interface is completely specified for the original shape of one or more methods, their parameters, and the type of return value. The interface describes an abstraction, but does not specify any implementation details. A class implements this interface by implementing each method defined in an interface. The interface allows us to flexibly define the relationship between objects. We may not directly define a class of instances and other classes of the relationship between the strengths, but define the instance of this class and implement the relationship between an instance of a set of interfaces. Last ...

转载请注明原文地址:https://www.9cbs.com/read-95981.html

New Post(0)