Question: what is the right answer in excercise 4 and 5 ,in java , full explanation please , thank you 4) Consider that you want to

what is the right answer in excercise 4 and 5 ,in java , full explanation please , thank you  what is the right answer in excercise 4 and 5 ,in

4) Consider that you want to extend XClass to YClass. YClass will have a third integer instance data; c. Which of the following would best define YClass' constructor? publicclassxclass1protectedinta;protectedintbipublicxclass(intx,inty)a=xib=y; a) pubilc yClass (int x, int y, int z ) super (x,y,z): b) public yClass (int x, int y, int z ) c) pub 11c yClass (ine x, int y, int z ) } super (x,y) : d) public yclass (int x, int y, int z ) c=2i super () ; 5) Which statements are most accurate regarding the a) In the class B, an instance method can oury b) In the class B, an instance method can only access j, k,m. c) In the class B, an instance method can only access j, m. m. d) in the class B, an instance method can only access k,m

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!