Test5:Java中的对象交互测试题
问题 1 Look the inheritance relation: In a source of java have the following line:
woman w = new man();
What statement are corrected? A. The expresion is legal B. Compile corrected but running wrong C.Will construct a woman’s object D. the expression is illegal 答案: D
问题 2 请阅读以下代码,请选择输出正确的结果:
class Person{
private String