17 lines
291 B
Plaintext
17 lines
291 B
Plaintext
|
class Worker1{
|
||
|
void doSomething(String x){}
|
||
|
}
|
||
|
class Worker2{
|
||
|
void doSomething(Integer y){}
|
||
|
}
|
||
|
class Content1{
|
||
|
String getElem(){return("");}
|
||
|
}
|
||
|
class Content2{
|
||
|
Integer getElem(){return(1);}
|
||
|
}
|
||
|
class User{
|
||
|
meth(worker,content){
|
||
|
worker.doSomething(content.getElem());
|
||
|
}
|
||
|
}
|