12345678910111213141516171819202122232425
  1. import java.util.*;
  2. import java.lang.String;
  3. /**
  4. * Write a description of class Cat here.
  5. *
  6. * @author (your name)
  7. * @version (a version number or a date)
  8. */
  9. public class Cat extends Pets
  10. {
  11. /**
  12. * Constructor for objects of class Cat
  13. */
  14. public Cat(String name)
  15. {
  16. super(name);
  17. super.setPetKind("Cat");
  18. }
  19. public String speak(){
  20. return ("Meow");
  21. }
  22. }