一道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)