Write a class to accompany the other beverage classes. SugarFreeDrink SugarFreeDrink drinks contain no sugar, may or may not contain artificial sweetener, and are larger in serving size than other drinks, coming in 20 oz. servings. SugarFreeDrink has an additional method called printDrinkLabel that prints drink is not all natural.” if the drink contains artificial sweeteners. If “This no artificial sweeteners are present, printDrinkLabel outputs drink “This contains no artificial sweeteners.”
Write a class SugarFreeDrink to accompany the other beverage classes. SugarFreeDrink drinks contain no sugar, may or may not contain artificial sweetener, and are larger in serving size than other drinks, coming in 20 oz. servings. SugarFreeDrink has an additional method called printDrinkLabel that prints “This drink is not all natural.” if the drink contains artificial sweeteners. If no artificial sweeteners are present, printDrinkLabel outputs “This drink contains no artificial sweeteners.”
WS%206.3.docx