11 lines
224 B
Java
11 lines
224 B
Java
|
//: generics/Holder1.java
|
|||
|
// <20>2015 MindView LLC: see Copyright.txt
|
|||
|
|
|||
|
class Automobile {}
|
|||
|
|
|||
|
public class Holder1 {
|
|||
|
private Automobile a;
|
|||
|
public Holder1(Automobile a) { this.a = a; }
|
|||
|
Automobile get() { return a; }
|
|||
|
} ///:~
|