Question: Which one is incorrect? c.getMydwnX() can be called. After casting c back to C2 type, getMyOwnX() can be called. c. x is equal to 2.

 Which one is incorrect? c.getMydwnX() can be called. After casting c

Which one is incorrect? c.getMydwnX() can be called. After casting c back to C2 type, getMyOwnX() can be called. c. x is equal to 2. c.getX() can be called. Class C2 has two methods

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!