테스트용 DIV
LEFT
public class StrategyPatternWiki { public static void Main(String[] args) { Customer firstCustomer = new Customer(new NormalStrategy());
// Normal billing firstCustomer.Add(1.0, 1);
테스트용 글자 // Start Happy Hour firstCustomer.Strategy = new HappyHourStrategy(); firstCustomer.Add(1.0, 2);
// New Customer Customer secondCustomer = new Customer(new HappyHourStrategy()); secondCustomer.Add(0.8, 1); // The Customer pays firstCustomer.PrintBill();
// End Happy Hour secondCustomer.Strategy = new NormalStrategy(); secondCustomer.Add(1.3, 2); secondCustomer.Add(2.5, 1); secondCustomer.PrintBill(); } }
Sorry, your browser does not support inline SVG.
RIGHT
테스트용 DIV
NORMAL SIDE SCALE FLOAT CHILD_NORMAL CHILD_SIDE