import java.util.Vector; import java.lang.Comparable; public class ClassGenerics extends Vector implements Comparable{ public typ1 variable1; protected typ2 variable2; public Integer compareTo(String s) { return null; } }