Question: Please Answer Both Mcqs. Will upvote. Let Cc= new C(0. What would be the outputs for c.getl() and c.getU()? c.getI0: , c.get(): public class P{

Please Answer Both Mcqs. Will upvote.

Please Answer Both Mcqs. Will upvote. Let Cc= new C(0. What would

be the outputs for c.getl() and c.getU()? c.getI0: , c.get(): public class

Let Cc= new C(0. What would be the outputs for c.getl() and c.getU()? c.getI0: , c.get(): public class P{ int i=5; int j=10; public int getIO \{ return i; \} public int getJO \{ return j; \} \} public class C extends P{ int j=30; public CO{ super.i =25; j=20; super.j =15 \} public int getIO \{ return i; \} \} What would be the output values for c2. x and c2.y ? c2.x:c2.y

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!