public void UsageMethod() { Abstracion ab = new RefinedAbstracion(); ab.Implementor = new ConcreteImplementorA(); ab.DoSomething(); ab.Implementor = new ConcreteImplementorB(); ab.DoSomething(); }
internal static void UsageMethod() { Abstracion ab = new RefinedAbstracion(); ab.Implementor = new ConcreteImplementorA(); ab.DoSomething(); ab.Implementor = new ConcreteImplementorB(); ab.DoSomething(); }