Refactoring class to get rid of switch case

前端 未结 0 1063
自闭症患者
自闭症患者 2021-02-12 01:08

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

public class TransportationCostCa         


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