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 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
Get step-by-step solutions from verified subject matter experts
