Wednesday, November 26, 2008

plants

Assignment 2:
Suppose you are asked to model plants using an OOP program. For each of the following plant-related entities, specifiy the most appropriate item to use for its implementation. For each entity, select one of the following: instance variable, object, method, or class

1. plant height .....class
2. sequence of activities that occur when a seed germinates......variable
3. an indication of whether a plant contains a vascular system.......variable
4. an individual plant.....class

No comments: