MCPcopy Index your code
hub / github.com/BruceEckel/OnJava8-Examples / GenericBase

Class GenericBase

generics/ErasureAndInheritance.java:6–10  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4// Visit http://OnJava8.com for more book information.
5
6class GenericBase<T> {
7 private T element;
8 public void set(T arg) { element = arg; }
9 public T get() { return element; }
10}
11
12class Derived1<T> extends GenericBase<T> {}
13

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected