예제 #1
0
파일: Bridge.cs 프로젝트: anton-antipin/oop
        public virtual string DoWork()
        {
            string build   = _language.Build();
            string execute = _language.Execute();

            return(string.Format("{0}{1}{2}", build, Environment.NewLine, execute));
        }
예제 #2
0
 public virtual void DoWork()
 {
     language.Build();
     language.Execute();
 }
예제 #3
0
 public virtual string DoWork()
 {
     return(language.Build() + " and " + language.Execute());
 }
예제 #4
0
 public virtual void DoWork()
 {
     // Выполнение операций в Abstraction делегируется методам объекта Implementor
     language.Build();
     language.Execute();
 }