, generalization (generalization):is a class (called a subclass, sub-interface) that inherits the functionality of another class (called a parent, parent interface) and can augment its own new functionality, which is the most common relationship between classes and classes or interfaces and interfaces, and in Java such relationships are explicitly identified by t
inheritance relationships between classes and interfaces. Figure H
650) This. width = 650; "src =" http://pic002.cnblogs.com/images/2012/285763/2012061315050938.gif "style =" margin: 0px; padding: 0px; Border: 0px; "/>
1.1.6 implementation (realization): Expressed by hollow arrows and dotted lines
Instance (FigureI) Link specifies a contract between two entities. In other words, one entity defines a contract, and the other entity guarantees the performance of the contract. When modeling
circumstances of the association, also embodies the part of the whole relationship, is a strong "ownership relationship", the whole and part have the same life cycle, is a strong association;Generalized Relationships (generalization and implementation): represents an inheritance relationship between a class and a class, an inheritance relationship between an interface and an interface, or a
Teach () {
......
}
}
4. Interface and Implementation relationshipIn many object-oriented languages have introduced the concept of interfaces, such as Java, C #, etc., in the interface, usually no attributes, and all operations are abstract, only the operation of the Declaration, there is no implementation of the operation. UML represents an interface in a manner similar to the representation of a
convert elements on the class diagram to Java. Java is used as a representative to combine some online instances. Below are some basic collection and summary of the individual: basic element Symbol: 1. Class (classes) class conta
Relationship between classes (1)In a software system, classes do not exist independently. Classes and classes have various relationships. for different types of relationships, UML provides different representations.1. AssociationAssociation is the most common relationship between a class and a class. It is a structured relationship used to indicate the relationsh
above. For example, if a and B have a "one-to-many" repetition degree, there is a list in a that stores n references of object B, that's all. Now, I have finished the class graph relationship above. I hope you will get something better. I have also spent a lot of time (drawing, generating code, writing to blog, alas, a sweat ). However, it is worth it if you can thoroughly understand the relationships of UML
extension above. For example, if A and B have A "one-to-many" repetition degree, there is A list in A that stores N references of object B, that's all.
Now, I have finished the class graph relationship above. I hope you will get something better. I have also spent a lot of time (drawing, generating code, writing to BLOG, alas, a sweat ). However, it is worth it if you can thoroughly understand the relationships of
description, we should be clear about the relationship between the various relations and what the code is like, the so-called degree of repetition, it is just an extension above. For example, if a and B have a "one-to-many" repetition degree, there is a list in a that stores n references of object B, that's all.
Now, I have finished the class graph relationship above. I hope you will get something better. I have also spent a lot of time (drawing, gen
class diagram to Java. Java is used as a representative to combine some online instances. Below are some basic collection and summary of the individual: basic element Symbol: 1. Class (Classes) class contains three components. Th
previous contents.
========================= Body ================================ =
Class
A uml class diagram is first used to describe a class. Class is represented by a box, which is separated into several columns.
Att
Unified Modeling Language (UML. It includes the following important functions:
Visualizing)
Specifying)
Construting)
Document creation (documenting)
UML includes:
User case diagrams)
Class Diagrams)
Sequence Diagram (sequence diagrams)
Collaboration diagrams)
Activity d
Address: http://developer.51cto.com/art/201006/205392.htm
This section briefly introduces the UML class diagram symbols, each of which has different meanings. I hope you will have some knowledge about the UML class diagram symbol
The existence of UMLClass diagram is a UML diagram with high frequency, which is used to describe the classes contained in the system and the relationship between them, to help people to simplify the understanding of the system, is also an important product of the system analysis and design phase, but also the important type of system coding and testing basis.How
Online about from C + + code to UML class diagram generation process of things, found a usable, and now turn down, in case of a rainy days.Turn to slightly adjust the next content, only care about the use.Original source http://siulyn.blog.163.com/blog/static/6245583620087252539344Rational Rose 2003 Reverse engineering generating
operations, no operation implementation. In UML, the interface is represented in a way similar to the class notation, as shown in 3:
Figure 3 UML diagram of the interface
Interfaces can also have inheritance and dependency relationships similar to the relationships between classes, but there is also a realization rel
I,UML diagram and code representation of class-to-class relationships
The relationship between classes plays an important role in understanding object-oriented objects. I was often asked this question during interviews. Here I will introduce it.There is a relationship between the
diagramsThere are four kinds of relationship between class diagram: Generalization relation, realization relation, dependency relation, association relation, and association relation is divided into common relation, aggregation relation and synthetic relation. But in fact these relationships we easy to understand, but many other times we have to pay attention to how to translate into
The meanings of the symbols of UML class diagramsClass diagram basic symbols can be broken down into dashed lines, arrows, solid lines, hollow right triangles, solid right triangles, hollow diamonds and solid diamonds. These basic graphs are combined to form the basic symbols of the class
UML class diagram
Using UML class diagrams, we can express the static content of classes and their relationships. In the class diagram, we can show the member variables and member funct
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.