Ad-Hoc-Polymorphie

Beispiel: Überladung im Argumenttyp:
static void p (int x, int    y) { ... }
static void p (int x, String y) { ... }
p (3, 4); p (3, "foo");
keine Überladung nur in Resultattyp, denn...
static int    f (boolean b) { ... }
static String f (boolean b) { ... }



Johannes Waldmann 2014-03-31