一道oo design方面的题目,请大家帮忙看下。

myctx myctx 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区
Your task, for this question, is to construct a conceptual model of the Java type system. It captures the relationships between classes and interfaces, and between the declared types of Telds and the types of the objects they hold. It ignores primitive types and local and static variables.

图片:http://www.matrix.org.cn/resource/upload/content/2005_08_23_173447_hptberDumm.jpg

Q1. Which Class has all Classes except itself (based on LSP) ? (4 points)


Q2. Class has relation “implements” to interface. May class (Java) has self-association ? If class may has self-association which relation Java uses ?


Q3. Describe the multiplicity (number-number) for the self-association. (3 points)
...全文

相关推荐

评论 5
收藏 已收藏
分享
返回顶部
myctx
Java 51,407 成员 86,126 内容