Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

WINTER 2018 4 17 Points] o0P terminology: Consider the following 1 public class

ID: 3728567 • Letter: W

Question

WINTER 2018 4 17 Points] o0P terminology: Consider the following 1 public class Ball 2 private double rx, ryi public Ball() { rx = 0.5; ry= 0.5; } public void move () rxrx+.001: ry = ry + .002; 10 public void move (double vx, double vy) 12 13 14 15 rxrx vx ry - ry vy: public static void main(String[] args) 16 17 18 19 20 21 private double vx, vy: Ball bl -new Ball (); Ball b2 = new Ball(); b1.move )i b2.move (vx, vy) 24 n the blanks at left, give all line numbers that contain each of the entities described at right. instance variable declaration constructor signature object creation a. b. -overloaded method signature method invocation or call primitive type variable declaration reference type variable declaration e, g,

Explanation / Answer

Please let me know in case of any doubt.

a. 3 instance variable declaration
b. 4 constructor signature
c. 19, 20 object creation
d. 6, 11 overloaded method signature
e. 21, 22 method invocation
f. 18 primitive type variable declaration
g. 19, 20 reference type variable declaration