多项选择题
Given:
Which three methods, inserted individually at line 14, will correctly complete class Two?()
A.int foo() { /* more code here */ }
B.void foo() { /* more code here */ }
C.public void foo() { /* more code here */ }
D.private void foo() { /* more code here */ }
E.protected void foo() { /* more code here */ }
点击查看答案
相关考题
-
单项选择题
Given:10. interface Data { public void load(); }11. abstract class Info { public abstract void load(); }Which class correctly uses the Data interface and Info class?()()
A.
B.
C.
D.
E.
F. -
单项选择题
Given: Which code, inserted at line 14, allows the Sprite class to compile?()
A.Direction d = NORTH;
B.Nav.Direction d = NORTH;
C.Direction d = Direction.NORTH;
D.Nav.Direction d = Nav.Direction.NORTH; -
单项选择题
Given: Which code, inserted at line 15, creates an instance of the Point class defined in Line?()
A.Point p = new Point();
B.Line.Point p = new Line.Point();
C.The Point class cannot be instatiated at line 15.
D.Line l = new Line() ; l.Point p = new l.Point();
