单选题Given: Which code, inserted at line 15, creates an instance of the Point class defined in Line?()APoint p = new Point();BLine.Point p = new Line.Point();CThe Point class cannot be instatiated at line 15.DLine l = new Line() ; l.Point p = new l.Point()

题目
单选题
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();


相似考题
参考答案和解析
正确答案: D
解析: 暂无解析