public class Flower extends Plant { private boolean isAnnual; private String color; public Flower () { super(); this.isAnnual = false; this.color = "TBD"; } public void setPlantType(boolean isAnnual){ this.isAnnual=isAnnual; } public boolean getPlantType(){ return this.isAnnual; } public void setColorOfFlowers(String color){ this.color=color; } public String getColorOfFlowers(){ return this.color; } @Override public void printInfo(){ System.out.println("Plant Information:"); System.out.println("\tPlant name: " + name); System.out.println("\tCost: " + cost); System.out.println("\tAnnual: " + isAnnual); System.out.println("\tColor of flowers: " + color + "\n"); } }