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

17 lines
291 B
Java
Executable File

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());
}
}