the positioning buoy is designed to localize the underwater frogman army.
定位浮标是为满足水下蛙人部队定位要求而设计的。
all three versions of frogman exhibit the same behavior: guice injects the appropriate vehicle when they「re constructed.
三个frogman版本都展示了相同的行为:guice 在构建时注入相应的vehicle。
treasure frogman is a game for the whole family.
珍惜蛙人是一个游戏,为整个家庭。
you have to help frogman to collect all the jewels and coins, and to find the way home, ashore.
你有帮助蛙人,收集所有的首饰和硬币,并找到回家的路上,上岸。
but it」s not the only way. listing 9 shows another way to configure the frogman class
但这不是唯一的方式。
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