- Category:
- Applet
- Tags:
-
[Java]
[源码]
- File Size:
- 1kb
- Update:
- 2013-10-18
- Downloads:
- 0 Times
- Uploaded by:
- 马陈鑫
Description: Write three categories: Goods, Car, each class has a method display (), respectively, is used to display the name of the product (name), the car brand (brand). Write a class TestVector, member variable contains a Vector objectVector, a member method addObject () is used to add objects to the objectVector in a member method displayObject () is used to display the object obj (if the commodity on the show name, the show car is a car brand brand), requires TestVector main method, call the addObject () method to objectVector objects were added to multiple Goods, Car object, calls displayObject () method to display objectVector each object' s property values.
To Search:
File list (Check if you may need any files):
1.java