JavaCompilerCore/examples/hoti/VererbProb.jav
2013-10-18 13:33:46 +02:00

23 lines
248 B
Java
Executable File

public class M1{}
public class M2 extends M1 {}
public class Test {
public doSomething(Boolean big){
M2 ret;
ret1;
ret2;
ret1=new M2();
ret2=new M2();
if(big){
ret=ret1;
}else{
ret=ret2;
}
return(ret);
}
}