OHL
OHL is a Java extension that adds sub-type switching to Java as in
switch (figure) { case instanceof Circle { return "Radius: " + figure.getRadius(); } case instanceof Square { return "Side length: " + figure.getSideLen(); } }
OHL is a Java extension that adds sub-type switching to Java as in
switch (figure) { case instanceof Circle { return "Radius: " + figure.getRadius(); } case instanceof Square { return "Side length: " + figure.getSideLen(); } }