blob: 3cf91e2e8beb2689b560db5e9fe3bbf24e98ba69 (
plain) (
tree)
|
|
public class Test {
public static void main(String[] args) {
VarArg jp = new JavaPrinter();
VarArg ip = new InheritingPrinter();
VarArg sp = new ScalaPrinter();
doYourThing(jp);
doYourThing(ip);
doYourThing(sp);
}
public static void doYourThing(VarArg va) {
va.doit("one", "two", "three");
System.out.println();
}
}
|