Cat.java 203B

1234567891011121314
  1. public class Cat extends Pet
  2. {
  3. /**
  4. * Constructor for objects of class Cat
  5. */
  6. public Cat(){
  7. }
  8. @Override
  9. public String speak(){
  10. return "I love kitties.";
  11. }
  12. }