Chapter 8 End of Chapter Exercises
I am new to C# and Object-Oriented Programming for that matter.
Right now I'm going over the exercises for Chapter 8, specifically Exercise 4.
The first instruction is to create an abstract class called "HotDrink"
The third step is to create a class called "CupofCoffee" that derives from "HotDrink"
Now, in the example from earlier in the chapter, when the base class is abstract, then the derived classes must implement the abstract members.
This being the case, in Exercise 4, shouldn't the class "CupOfCoffee" have methods Drink(), AddMilk() and AddSugar() listed in their members since they are derived from an abstract class?
I'm just trying to understand, any help is much appreciated!
|