Adding a new method to an object is as simple as defining one in an aspect, as shown in Listing 2.

  • 如清单2所示,在一个对象中添加一个新的方法和在一个方面中定义一个方法是同样简单的。
目录 查词历史