Solved

Consider the Java Code Segment Below

Question 16

Multiple Choice

Consider the Java code segment below:
Polygon poly2 = new Polygon() ;
Poly2.addPoint(100,30) ;
Poly2.addPoint(100,130) ;
Which of the following will create a polygon that is a square?


A) poly2.addPoint(100,60) ;
Poly2.addPoint(100,130) ;
B) poly2.addPoint(200,130) ;
Poly2.addPoint(200,30) ;
C) poly2.addPoint(200,60) ;
Poly2.addPoint(200,130) ;
D) poly2.addPoint(100,130) ;
Poly2.addPoint(100,230) ;

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions