Question: in Java please! 1. question one 2.question two Show the output of the following program. class A int x-1;) class B extends A ) class
in Java please!
1. question one 
2.question two
Show the output of the following program. class A int x-1;) class B extends A ) class C extends B intx-2;3 public class classTest { Homework public static void main(String[] args) { A w new A0: System.out.println(w.x): B u = new BO: System.out.printIn(.x): ? ? new cO: system.out.printIn(v.x): A [] a-{ new Ao. new B(), new C()); for (int i-0; i
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
