// Purpose: Test the interface

// source: based on codes available in http://www.fluffycat.com/Java/Interfaces/.

 

A.    Source files:

Fruit.java                      Vegetable.java              Tomato.java

B.    Running the application using NetBeans:

1.   Download all files into a temporary folder.

2.   Create a new project with existing sources and add all files into the project.

 

C.    Sample output screen: