Connections and differences between inheritance, implementation, dependency, association, aggregation, and combination
These relationships are described respectively:Inheritance
A class (called a subclass or sub-interface) inherits the functions of
Reprint: http://blog.csdn.net/kevin_darkelf/article/details/11371353Relationships and differences between inheritance, implementation, dependency, association, aggregation, and compositionThese relationships are described separately:InheritedRefers
When learning object-oriented design object relationships, the differences between dependency, association, aggregation, and combination are confusing. In particular, the last three types only have differences in semantics. Semantics refers to
Inter-class relationship
In the class diagram, apart from describing the names, attributes, and operations of individual classes, we also need to describe the relationships between classes because no classes exist independently, they usually need
UML relationship: Inheritance/generalization, implementation, dependency, association, aggregation, combination of association and difference, uml2016-07-12
These relationships are described respectively:
UML relationships: the relationships and
Inter-class relationship
In the class diagram, apart from describing the names, attributes, and operations of individual classes, we also need to describe the relationships between classes because no classes exist independently, they usually need to
Class diagram is used to describe the classes contained in the system and the relationship between them, to help people simplify the understanding of the system, it is an important product of the system analysis and design phase, but also the system
Inter-class relationship
In the class diagram, apart from describing the names, attributes, and operations of individual classes, we also need to describe the relationships between classes because no classes exist independently, they usually need
The relationship between classes and classes plays an important role in understanding object-oriented, and is often asked in interviews before, and I'll introduce you here. The following relationship exists between classes and classes:
(1)
UML diagram example: (you can use startuml for drawing, small size ^_^)
Http://www.blogjava.net/lukangping/archive/2010/08/01/327693.html
Aggregation: indicates that two objects are integral and partial.WeakLink, and the lifecycle of some parts
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.