10.classLine{11.publicclassPoint{publicintx,y;}12.publicPointgetPoint(){returnnewPoint();}13.}14.classTriangle{15.publicTriangle(){16.//insertcodehere17.}18.}Whichcode,insertedatline16,correctlyretrievesalocalinstanceofaPointobject?()
A.Pointp=Line.getPoint();
B.Line.Pointp=Line.getPoint();
C.Pointp=(newLine()).getPoint();
D.Line.Pointp=(newLine()).getPoint();
时间:2023-09-10 13:49:54
相似题目