compiler-design-eth/javali_tests/HW4_nop90/OkCasts.javali
2020-01-15 22:38:07 +01:00

16 lines
No EOL
246 B
Text

/* 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;
}
}