2018-03-18 16:08:52 +01:00
|
|
|
import java.lang.String;
|
|
|
|
|
|
|
|
public class Overloading{
|
|
|
|
|
2024-03-14 13:50:56 +01:00
|
|
|
public test(x){
|
2018-03-18 16:08:52 +01:00
|
|
|
return x.methode();
|
|
|
|
}
|
|
|
|
|
2024-03-14 13:50:56 +01:00
|
|
|
public methode(){
|
2018-03-18 16:08:52 +01:00
|
|
|
return "Overloading";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
public class Overloading2{
|
2024-03-14 13:50:56 +01:00
|
|
|
public methode(){
|
2018-03-18 16:08:52 +01:00
|
|
|
return "Overloading2";
|
|
|
|
}
|
|
|
|
}
|