多项选择题
What two must the programmer do to correct the compilation errors?()
A.insert a call to this() in the Car constructor
B.insert a call to this() in the MeGo constructor
C.insert a call to super() in the MeGo constructor
D.insert a call to super(vin) in the MeGo constructor
E.change the wheelCount variable in Car to protected
F.change line 3 in the MeGo class to super.wheelCount=3
相关考题
-
单项选择题
Ateamofprogrammersisinvolvedinreviewingaproposeddesignforanewutilityclass,Aftersomediscussion,theyrealizethatthecurrentdesignallowsotherclassestoaccessmethodsintheutilityclassthatshouldbeaccessibleonlytomethodswithintheutilityclassitself.Whatdesignissuehastheteamdiscovered?()
A.Tight coupling
B.Low cohesion
C.High cohesion
D.Loose coupling
E.Weak encapsulation
F.Strong encapsulation -
多项选择题
What are four valid examples of polymorphic method calls?()
A.x.a2();
B.z.a2();
C.z.c1();
D.z.a1();
E.y.c1();
F.x.a1(); -
单项选择题
What is the result?()
A.peep
B.bark
C.meow
D.Compilation fails.
E.An exception is thrown at runtime.
