Question: 1 8 . ( 3 pts ) Consider the following class definition: ( CLO - 1 ) public class ACLassprivate int x; protected int y;public

18.(3pts) Consider the following class definition: (CLO-1)public class ACLassprivate int x; protected int y;public AClass (int a, int b)Xa ;b; various methods.. Assume that you want to create class BClass that extends AClass. BClass will have a third int instance variable, z.Which of the following would best define the constructor for BClass?A.public BClass (int a, int b, int c)super (a, b, c) ;B. public BClass (int a, int b, int c)z = C;C. public BClass (int a, int b, int c)YZb;D. public Blass (int a, int b, int c)Z = C;public Blass (int a, int b, int c)super ();}

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!