123456789101112131415161718192021222324252627282930313233
  1. /**
  2. * Write a description of class Pet here.
  3. *
  4. * @author (your name)
  5. * @version (a version number or a date)
  6. */
  7. public class Pet
  8. {
  9. String name;
  10. String type;
  11. public Pet(String name){
  12. this.name = name;
  13. }
  14. public String speak(){
  15. return "";
  16. }
  17. public void setType(String type){
  18. this.type = type;
  19. }
  20. public String getName(){
  21. return name;
  22. }
  23. public String getType(){
  24. return type;
  25. }
  26. }