UML diagrams and realize the difference between inheritance

(1) inheritance

Description:
Inheritance represents a class (called a subclass, sub-interface ) inherit another class (called parent, parent interface functions), and can increase the capacity of its own new features.
Representation:
Inherited using open triangle + solid line representation.
Example:
Birds inherited abstract animals

 
Inheritance

(2) implementation
Introduction:
implementation represents a class class implements the interface an interface function (which may be s).
display method:

1) rectangle notation using open triangles dotted line + such as: the flight geese, necessary to achieve the fly () interface 

 
Rectangular notation

2) lollipop notation using a solid line represents 

 
Lollipop notation
 

Author: Last Whisper _dd43
link: https: //www.jianshu.com/p/57620b762160
Source: Jane books
are copyrighted by the author. Commercial reprint please contact the author authorized, non-commercial reprint please indicate the source.

Guess you like

Origin www.cnblogs.com/Stephen-Qin/p/12436167.html