Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
对于类图,我见过的例子看起来像
class A{ [snip] list of class features } class B{ [snip] list of class features } A <|-- B
即显式调用了继承箭头。
是否有一个有效的语法,我可以这样说:
class A{ } class B: public A { }
并在结果图中自动获取继承箭头?
是的。支持继承和接口实现。
class A extends B class C implements D
但是,成员在类中不重复。它只是处理关系箭头。