type | subtype | example |
---|---|---|
extends 继承 | interface extends interface | public interface Aunt extends GrandFather, GrandMother |
class extends abstract class | public class Cousin extends Uncle | |
class extends class | public class Son extends Father | |
implements 实现 | abstract class implements interface | public abstract class Uncle implements GrandFather |
class implements interface | public class Father extends GrandFather | |
implements 实现 | abstract class implements interface | public abstract class Uncle implements GrandFather |
class implements interface | public class Father extends GrandFather | |
include 包含 | single filed in class | Son 中有father 的field |
many filed in class | Son 中有Uncle 的field 数组 | |
denpency 依赖 | single filed in method | Cousin 的方法中使用了Aunt |
b idea 的 uml类图
最新推荐文章于 2024-08-25 04:50:27 发布