在这里,唯一的答案是一个简单的箭头:How to present an abstract class in UML class diagram 但在这里,它类似于界面箭头:http://www.cems.uwe.ac.uk/~jsa/UMLJavaShortCourse09/CGOutput/Unit9/unit9(0809)/page_03.htm 我认为它应该是与图中类到接口箭头相同<e
在OOP中,当类使用关键字new创建实例时,就存在依赖关系。关于Wikipedia,UML-notation通过一个带有虚线的箭头来显示依赖关系: ? 这个网站上的代码有一个客户端类(我认为它是MainApp),它包含三次关键字new,用于为接收器、命令和调用器创建一个实例。receiver, command, and invoker
Receiver receiver = new Receiver(); // <- no dashed a