Even though a custom category class can be written, this code uses the default category supplied by the API, which will be effective in most cases.
即使一个自定义类别类能够被编写,但是这个代码仍然使用由API所提供的默认类别,它在大多数情况下是有效的。
The Category class includes the category name and the book's metadata in the form of the ArrayList.BookItem class, which contains the book's name, author, price, and category.
Category类包含类别名以及以 ArrayList.BookItem 类形式表示的书籍的元数据,这些元数据包括书名、作者、价格和类别。
It will also cause the Category class to have a "products" collection that enables developers to retrieve all products within that Category.
同样也是类别类拥有产品集合属性,通过这个属性可以得到此类别下所有产品。
It will also cause the Category class to have a "products" collection that enables developers to retrieve all products within that Category.
同样也是类别类拥有产品集合属性,通过这个属性可以得到此类别下所有产品。
应用推荐