Question: 5) Consider the following partial class definitions: public class A public int xl; private int yl; protected int zl; public class B extends A public

5) Consider the following partial class definitions: public class A public int xl; private int yl; protected int zl; public class B extends A public int x2; private int y2; protected int z2; public class c extends A public int x3; private int y3; public class D extends B public int x4; private int y4; a) Draw a diagram showing the class hierarchy. b) Explain the visibility (accessibility) of all variables
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
