예제 #1
0
파일: Car.cs 프로젝트: votrongdao/Pattern
 /// <summary>
 /// Only for example. Its bad idea - we need constructor with such parameter
 /// </summary>
 public Car()
 {
     Stereo = new Stereo();
     Engine = new Engine();
     Transmission = new Transmission();
     RocketBarrage = new RocketBarrage();
 }
예제 #2
0
 public StartEngine(Engine engine)
 {
     _engine = engine;
 }