18 lines
199 B
Plaintext
18 lines
199 B
Plaintext
|
import java.lang.String;
|
||
|
|
||
|
public class Overloading{
|
||
|
|
||
|
test(x){
|
||
|
return x.methode();
|
||
|
}
|
||
|
|
||
|
methode(){
|
||
|
return "Overloading";
|
||
|
}
|
||
|
}
|
||
|
|
||
|
public class Overloading2{
|
||
|
methode(){
|
||
|
return "Overloading2";
|
||
|
}
|
||
|
}
|