//Konstantin Voevodski, Lab4 CAS CS112 Spring 2010 public class FlatScreenTelevision extends Television implements Comparable{ Double resolution; public FlatScreenTelevision(String description, String brand, Double price, boolean inStock, double screenSize, double resolution){ super(description,brand,price,inStock,screenSize); this.resolution = resolution; } public Double getResolution(){ return resolution; } public int compareTo(FlatScreenTelevision fst){ if(resolution > fst.getResolution()) return -1; if(resolution < fst.getResolution()) return 1; else return 0; } }