Cat.java 200B

12345678910111213141516
  1. public class Cat extends Pet
  2. {
  3. public Cat(String name)
  4. {
  5. super(name);
  6. super.setType("Cat");
  7. }
  8. public String speak(){
  9. return "meow";
  10. }
  11. }