Here are updated Fan and CoffeePot types, both of which satisfy an Appliance interface. We’ve also added a Use method that accepts an Appliance. Currently, Use only calls the TurnOn method on the Appliance…
Update Use so that it calls Oscillate on the Appliance if (and only if) it’s a Fan. Use should also call Brew on the Appliance if (and only if) it’s a CoffeePot.
Rotating on base