KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > tests > jfun > models > Sheep


1 package tests.jfun.models;
2
3
4 public final class Sheep{
5   private final Sheep father;
6   private final Sheep mother;
7   private final String JavaDoc name;
8   public Sheep getFather(){
9     return father;
10   }
11   public Sheep getMother(){
12     return mother;
13   }
14   public String JavaDoc getName(){return name;}
15   public Sheep(String JavaDoc n, Sheep m, Sheep f){
16     this.mother = m;
17     this.father = f;
18     this.name = n;
19   }
20 }
Popular Tags