KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > tests > jfun > yan > xml > models > Human


1 package tests.jfun.yan.xml.models;
2
3 public class Human {
4   private Fruit fruit;
5
6   public Human(Fruit fruit) {
7     this.fruit = fruit;
8   }
9
10   public Fruit getFruit() {
11     return fruit;
12   }
13
14   public void setFruit(Fruit fruit) {
15     this.fruit = fruit;
16   }
17   
18 }
19
Popular Tags