public static void ProxyExample() { Console.WriteLine("---------- Proxy example"); var payment = new OnlinePayment(new CashPayment()); payment.Pay(200000); payment.Pay(1000); }
static void Main(string[] args) { //sample 1 Console.WriteLine("---------- Proxy example"); var payment = new OnlinePayment(new CashPayment()); payment.Pay(200000); payment.Pay(1000); }