The implementation order doesn't really matter, both are useful in their own right, and complementary when used together.
实现顺序并不是真正的问题,两种方式都可以单独使用,而且结合使用时则是互补的。
The method's implementation creates instances of Order and CreditCard and sets their attributes.
该方法的实现创建了Order和CreditCard的实例,并且设置了它们的属性。
Listing 12 shows the code in main and its implementation of this order.
清单12展示了main中的代码和对此顺序的实现。
应用推荐