package candledemo; /** * * @author charles a smmons */ public class Candle { public String color; //Declaring Variables public String height; public static int price; public Candle( String color, String height) { //Constructor color = color; height = height; int price = 2*height ; } public static int getColor() //Public methods { return color; } Candle() { throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates. } public void setColor(int color) { Candle.color = color; } public static int getHeight() { return height; } public void setHeight(int height) { Candle.height = height; } public static int getPrice() { return price; } public void setPrice(int price) { Candle.price = 2 * height; } } public class ScentedCandle extends Candle { //Creating subclass to superclass Candle public static int scent; //Delcare Variable public ScentedCandle(int startScent,int startcolor, int startHeight,int startPrice) { //Constructor super(startColor, startHeight, startPrice); //Calling from superclass Candle scent = startScent; } public static int getScent() //Public methods { return scent; } public void setScent(int scent) { ScentedCandle.scent = scent; } public static int getPrice() { return price; } @Override public void setPrice(int price) { Candle.price = 3 * height; } } public class DemoCandles { //Here is where I'm lost and have no clue public static void main(String[] args) { Candle getColor; //Declaring Variables Candle getHeight; Candle getPrice; ScentedCandle getScent; getColor = new Candle(); getHeight = new Candle(); getPrice = new Candle(); getScent = new ScentedCandle(); } }