2015-04-22 19:40:22 +00:00
|
|
|
import de.dhbwstuttgart.typeinference.Menge;
|
2013-10-18 11:33:46 +00:00
|
|
|
|
|
|
|
class OL2 {
|
|
|
|
|
|
|
|
Integer m(Integer x) { return x + x; }
|
|
|
|
|
|
|
|
Boolean m(Boolean x) {return x || x; }
|
|
|
|
}
|
|
|
|
|
|
|
|
class Main {
|
|
|
|
|
|
|
|
main(x) {
|
|
|
|
ol;
|
|
|
|
ol = new OL2();
|
|
|
|
y;
|
2015-04-22 19:40:22 +00:00
|
|
|
/* y = new Menge<Integer>(); */
|
2013-10-18 11:33:46 +00:00
|
|
|
y.addElement(ol.m(x));
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|