23 lines
248 B
Plaintext
23 lines
248 B
Plaintext
|
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);
|
||
|
}
|
||
|
}
|