Consider the following Java interface and class definitions: public interface X { int getX(): } public interface U { int getY(): } class C implements X { public int getX() { return 1: } } class D extends C implements Y { public int getX () { return 2: } public int getY() { return getX() + getx(): } class E extends C { public int getY() { return 3: } } For each code snippet below, what value that will be printed out D d1 = new D(): System.out.println (d1.getY()): a. 3 b. 9 c. 4 d. none of the above Answer: C c1 = new D(): System.out.printin (cl.getX()): a. 2 b. 3 c. 1 d. None of the above Answer: X x1 = new C(): System.out.printin(x1.getX()): a. 5 b. 1 c. 0 d. None of the above Answer:

"Get 15% discount on your first 3 orders with us"
Use the following coupon
"FIRST15"

Order Now