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

myctx 2005-08-24 08:54:41
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)
...全文
341 5 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
uncleAndyChen 2005-09-08
  • 打赏
  • 举报
回复
顶一下
bluesage 2005-08-30
  • 打赏
  • 举报
回复
看不懂,那位大牛解释一下?
BillyW 2005-08-30
  • 打赏
  • 举报
回复
Q1
A: Object

Q2
A:composite

Q3
A:0..1 对 0..n
losingaries 2005-08-30
  • 打赏
  • 举报
回复
1.field
2.yes, extends
3.0..1 1
losingaries 2005-08-26
  • 打赏
  • 举报
回复
是林老师的考试题目吧,哈哈

51,397

社区成员

发帖
与我相关
我的任务
社区描述
Java相关技术讨论
javaspring bootspring cloud 技术论坛(原bbs)
社区管理员
  • Java相关社区
  • 小虚竹
  • 谙忆
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧