OnJava8-Examples/generics/MultipleInterfaceVariants.java

9 lines
223 B
Java
Raw Normal View History

2015-04-20 15:36:01 -07:00
//: generics/MultipleInterfaceVariants.java
// {CompileTimeError} (Won't compile)
interface Payable<T> {}
class Employee implements Payable<Employee> {}
class Hourly extends Employee
implements Payable<Hourly> {} ///:~