Refactoring class to get rid of switch case

前端 未结 0 2008
孤城傲影
孤城傲影 2021-02-12 00:51

Say I have a class like this for calculating the cost of travelling different distances with different modes of transportation:

public class TransportationCostCa         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题