12345678910111213141516171819202122232425
  1. /**
  2. * Write a description of class Cat here.
  3. *
  4. * @author (your name)
  5. * @version (a version number or a date)
  6. */
  7. public class Cat extends Pet
  8. {
  9. // instance variables - replace the example below with your own
  10. /**
  11. * Constructor for objects of class Cat
  12. */
  13. public Cat(String name){
  14. super(name);
  15. super.setType("Cat");
  16. }
  17. public String speak(){
  18. return "Meow";
  19. }
  20. }