Question: Consider the following classes. // Parent.java public class Parent private int pData; public Parent 0) pData 0 public Parent ( int val) pData val: //
Consider the following classes. // Parent.java public class Parent private int pData; public Parent 0) pData 0 public Parent ( int val) pData val: // Child.java public class Child extends Parent public Child) super ( 1O Which of the following statements will produce a complier error (Note: each class is in its own file)? OA. Child c new Child( 10); OB. Parent p new Parent( 3 ); C. Parent p-new Child D. Child c new Child0: OE. Parent p- new Parento
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
