[問題] Java 程式中怎麼讓名稱前後一起變
Client.Medicationservice serviceLocator =
new MedicationClient.MedicationserviceLocator();
其中等於前面的Medicationservice跟等於後面的MedicationserviceLocator()會改變
要如何讓他在程式中是變動的
舉例好了
舉例1
Client.XYZservice serviceLocator = new MedicationClient.XYZserviceLocator();
舉例2
Client.ASDservice serviceLocator = new MedicationClient.ASDserviceLocator();
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 140.115.72.32
→
06/29 21:24, , 1F
06/29 21:24, 1F
推
06/29 21:33, , 2F
06/29 21:33, 2F
→
06/29 21:34, , 3F
06/29 21:34, 3F
→
06/29 23:08, , 4F
06/29 23:08, 4F
→
06/30 00:36, , 5F
06/30 00:36, 5F
→
07/02 16:23, , 6F
07/02 16:23, 6F