1234567891011121314151617181920212223242526
  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. // instance variables - replace the example below with your own
  10. private int x;
  11. /**
  12. * Constructor for objects of class Dog
  13. */
  14. public Dog(){
  15. }
  16. @Override
  17. public String speak(){
  18. return "Englnad is my city.";
  19. }
  20. }