To avoid this problem, you can create an interface (for example, Vehicle) and have your FrogMan class accept the Vehicle as a constructor argument, as in Listing 3.
为了避免这个问题,您可以创建一个接口(例如vehicle),使frogman类接受Vehicle作为一个构造函数参数,如清单3所示。
To avoid this problem, you can create an interface (for example, Vehicle) and have your FrogMan class accept the Vehicle as a constructor argument, as in Listing 3.
为了避免这个问题,您可以创建一个接口(例如vehicle),使frogman类接受Vehicle作为一个构造函数参数,如清单3所示。
应用推荐