compiler-design-eth/javali_tests/HW4_nop90/OkCasts.javali

16 lines
246 B
Text
Raw Permalink Normal View History

2020-01-15 22:32:25 +01:00
/* testing casting as well as creating new Objects*/
class Main
{
void main()
{
int a;
int b;
Object c;
Object d;
c = null;
d = new Object();
a = 10;
c = (Object) d;
}
}