OnJava8-Examples/generics/MultipleInterfaceVariants.java
2017-04-28 09:54:06 -06:00

14 lines
377 B
Java

// generics/MultipleInterfaceVariants.java
// (c)2017 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.
// {WillNotCompile}
package generics;
interface Payable<T> {}
class Employee implements Payable<Employee> {}
class Hourly extends Employee
implements Payable<Hourly> {}