public class StrategyPatternWiki
{
public static void Main(String[] args)
{
Customer firstCustomer = new Customer(new NormalStrategy());
firstCustomer.Add(1.0, 1);
테스트용 글자
firstCustomer.Strategy = new HappyHourStrategy();
firstCustomer.Add(1.0, 2);
Customer secondCustomer = new Customer(new HappyHourStrategy());
secondCustomer.Add(0.8, 1);
firstCustomer.PrintBill();
secondCustomer.Strategy = new NormalStrategy();
secondCustomer.Add(1.3, 2);
secondCustomer.Add(2.5, 1);
secondCustomer.PrintBill();
}
}