UML common terminology analysis

xiaoxiao2021-03-06  43

UML and Java terminology correspondence

UML term Java terminology inheritance Dependency Dependency Dependency (Association) Realization / Interface (Interface) Interface ( Interface) Operation Method (ATHOD) Value Domain (Property)

Dependencies are the weakest relationship between objects, and an object relies on another object that 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 method of relying on object, or configuring the dependent object. The association is a long-term relationship between objects. In the association, an object saves a reference to another object and calls the method of this object when needed. Depending on the general expression method is a local variable of the method, or reference to the static method within the method. Associated general expressive methods is the global variable of the object. Dependence: Class A {void methoda () {b = new b (); b.Methodb ();}} association: class b {b b = new b (); void methoda () {b.Methodb (); }} Aggregation indicates that an object is a greater overall portion. This object being included may participate in multiple aggregation relationships and oppose the existence. A combination indicates that an object is owned by a larger whole. This object that is included may not participate in more combination and cannot be independent of this overall.

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

New Post(0)