OnJava8-Examples/generics/Holder1.java
2020-10-07 13:35:40 -06:00

13 lines
338 B
Java

// generics/Holder1.java
// (c)2020 MindView LLC: see Copyright.txt
// We make no guarantees that this code is fit for any purpose.
// Visit http://OnJava8.com for more book information.
class Automobile {}
public class Holder1 {
private Automobile a;
public Holder1(Automobile a) { this.a = a; }
Automobile get() { return a; }
}