123456789101112131415161718192021222324252627282930313233343536373839
  1. import java.lang.String;
  2. import java.util.*;
  3. /**
  4. * Created by leon on 11/6/17.
  5. */
  6. public class Pets {
  7. String name;
  8. String petKind;
  9. /**
  10. * Constructor
  11. */
  12. public Pets(String name)
  13. {
  14. this.name = name;
  15. }
  16. public void setName(){
  17. this.name = name;
  18. }
  19. public void setPetKind(String petKind){
  20. this.petKind = petKind;
  21. }
  22. public String speak(){
  23. return null;
  24. }
  25. public String getName(){
  26. return this.name;
  27. }
  28. public String getPetKind(){
  29. return this.petKind;
  30. }
  31. }