I can run your program and CoffeeCup class is being called from CoffeeCup_Driver.

So you have to check where you are wrong. And if my help is needed then tell me the output you needed.