September 2019
Intermediate to advanced
816 pages
18h 47m
English
The Pair class extends the Tuple class; therefore, the Tuple class is a superclass of Pair. We can obtain it via the Class.getSuperclass() method, as follows:
Class<?> superClass = clazz.getSuperclass();// modern.challenge.TupleSystem.out.println("Superclass: " + superClass.getName());