Operation() 공개 추상적인 메소드

public abstract Operation ( ) : void
리턴 void
예제 #1
0
        public void ClientCode2(Component component1, Component component2)
        {
            if (component1.IsComposite())
            {
                component1.Add(component2);
            }
            Console.Write("RESULT: ");
            component1.Operation();

            Console.WriteLine();
        }
예제 #2
0
 public void ClientCode(Component leaf)
 {
     Console.Write("RESULT: ");
     leaf.Operation();
 }