viewing paste IceCreamCone Example | Java

Posted on the
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
public  class   IceCreamCone
{
    //private variables -- filled in later
    
    //Constructors public IceCreamCone()
    {
        //body -- filled in later
    }
    
    //Methods
    public void setFlavor(String flv)
    {
        //body -- filled in later
    }
    
    public void addScoop()
    {
        //body -- filled in later
    }
    public String getFlavor()
    {
        //body filled in later
    }
    
    //Additional methods: setConeType(), getConeType(),
    //getNumberofScoops(), toString()
    //Add methods to your liking
}
Viewed 738 times, submitted by Guest.