1234567891011121314151617181920
  1. /**
  2. * Write a description of class Dog here.
  3. *
  4. * @author (your name)
  5. * @version (a version number or a date)
  6. */
  7. public class Dog extends Pet
  8. {
  9. public Dog(String name){
  10. super(name);
  11. }
  12. @Override
  13. public String speak() {
  14. return "Grrrrrrr";
  15. }
  16. }