Question: 12. Recall that a superclass reference variable can be used to point to subclass objects. The following code needs to have one cast in order
12. Recall that a superclass reference variable can be used to point to subclass objects. The following code needs to have one cast in order to compile. Where should the cast be placed in the code? String str 1= "hel2o"; Object obj 1= str1; String strz=obj 1
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
