1234567891011121314151617181920
  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. public Cat(String name){
  10. super(name);
  11. super.setType("Cat");
  12. }
  13. public String speak(){
  14. return "meowmeowmeow";
  15. }
  16. }