compiler-design-eth/javali_tests/HW2_nop90/Casts.javali
Carlos Galindo bf60a078d7
Homework 2
2020-01-15 22:30:09 +01:00

16 lines
No EOL
246 B
Text
Executable file

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