예제 #1
0
 public LogisticApp(string type)
 {
     this.t = type switch
     {
         "car" => new RoadLogistics(type),
         "ship" => new RoadLogistics(type),
         "sea" => new SeaLogistics(),
         _ => null
     };
 }
예제 #2
0
파일: Client.cs 프로젝트: grenadin/Factory
 static void ClientMethod(Logistics creator)//
 {
     Console.WriteLine($"Client not concern the creator class. It still work. {creator.PlanDelivery()}");
 }