Solved

Consider the Java Code Segment Below

Question 3

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

Related Questions