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.
我是初学者(这很快就会变得很明显),我不知道如何翻译这个图: UML 类图
我需要帮助的是如何创建关联和依赖关系。例如,根据这张图,你能告诉我完成的 lab4.SimpleDraw 会是什么样子吗?从那,我应该能够自己弄清楚其余的。到目前为止,我所拥有的特别是:
package lab4; public class SimpleDraw { }
所以基本上什么都没有。
如果它是下划线,这意味着方法/字段是静态的。
在任何一个之前,您都会看到一个“-”或“+”
-
+
要了解有关依赖性的更多信息,请阅读此
关于依赖扩展类阅读此。
但是我没有看到任何这些,这里的行说它将在方法/字段中使用您的类。