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 name; 8 public Sheep getFather(){ 9 return father; 10 } 11 public Sheep getMother(){ 12 return mother; 13 } 14 public String getName(){return name;} 15 public Sheep(String n, Sheep m, Sheep f){ 16 this.mother = m; 17 this.father = f; 18 this.name = n; 19 } 20 } | Popular Tags |