24 lines
282 B
Plaintext
24 lines
282 B
Plaintext
|
class Overl<X>{
|
||
|
|
||
|
public Integer overloaded(a){
|
||
|
return(a);
|
||
|
}
|
||
|
public String overloaded(b){
|
||
|
return(b);
|
||
|
}
|
||
|
|
||
|
}
|
||
|
|
||
|
class OverlMaster<X> extends Overl<X>{
|
||
|
public X overloaded(a){
|
||
|
return(a);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
class Test{
|
||
|
public Boolean test(Boolean b){
|
||
|
c;
|
||
|
return(c.overloaded(b));
|
||
|
}
|
||
|
|
||
|
}
|