public: virtual void insertQuarter() { std::cout << "You inserted a quarter" << std::endl; gumballMachine->setState(gumballMachine->getHasQuarterState()); }
void insertQuarter() const { std::cout << "You inserted a quarter" << std::endl; _gumballMachine->setState(_gumballMachine->getHasQuarterState()); }