0

is this produce compile _time erorr ? plzzzzzzz answeeeeer

X x= new X(); Y y= new Y(); y=x; x=y;

10th Sep 2017, 8:53 PM
Shade96
Shade96 - avatar
2 Respuestas
+ 9
Hard to say... what kind of classes are X and Y? Any inheritance? Interface among them two?
10th Sep 2017, 9:14 PM
Tashi N
Tashi N - avatar
0
X is a subclass of Y
10th Sep 2017, 9:24 PM
Shade96
Shade96 - avatar