用EventHandler造句子,“EventHandler”造句
來源:國語幫 3.37W
要想進一步增強面向對象特*,可以將if語句的最後一小部分替換為Map,後者將EventType連接到EventHandler工廠對象。
It would be even more object oriented if you replaced the last bits of the if statement with a Map connecting EventTypes to EventHandler factory objects.