13. Generalizations. Icannot finish the third step


#1

3.
Modify the Coffee class so that it inherits from the Beverage class.

class Coffee extends Bevarge{

public Coffee() {

}

public void addSugar(int cubes) {

	System.out.println("You added " + cubes + " sugar cubes.");

}

public static void main(String[] args) {
Coffee myOrder=new Coffee();
myOrder.addSugar(2);


}

}


#2

Hi, @objectsurfer72538 ,

You have ...

class Coffee extends Bevarge{

The above misspells Beverage. Change it to ...

class Coffee extends Beverage {

#3

Just a tiny little typo and look at how much it can mess up!
In the first step of this exercise I wrote "my0rder" instead of "myOrder" using a ZERO.
Lesson for today: typos are your biggest enemy!