OnJava8-Examples/generics/MultipleInterfaceVariants.java
Bruce Eckel 49edcc8b17 reorg
2015-06-15 17:47:35 -07:00

10 lines
264 B
Java

//: generics/MultipleInterfaceVariants.java
// ©2015 MindView LLC: see Copyright.txt
// {CompileTimeError} (Won't compile)
interface Payable<T> {}
class Employee implements Payable<Employee> {}
class Hourly extends Employee
implements Payable<Hourly> {} ///:~