Interface IPlant

Interface IPlant defines the behavior that needs to be implemented by all classes, providing plant-related behavior that can be used in the simulation. In order to be able to use different classes that provide plant-related behavior, these classes should implement the following interface. Different classes will provide a polymorphic implementation of the same interface. Figure 8-28 shows the Java code for the interface IPlant.

1 import java.util.Properties;

2 public interface IPlant {

0 0

Post a comment