compiler-design-eth/javali_tests/HW2_nop90/Casts.javali

16 lines
246 B
Text
Raw Permalink Normal View History

2020-01-15 22:30:09 +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;
}
}