1234567891011121314151617181920212223242526 |
-
- /**
- * Write a description of class Dog here.
- *
- * @author (your name)
- * @version (a version number or a date)
- */
- public class Dog extends Pet
- {
-
- // instance variables - replace the example below with your own
- private int x;
- /**
- * Constructor for objects of class Dog
- */
- public Dog(){
-
- }
-
-
- @Override
- public String speak(){
- return "Englnad is my city.";
- }
- }
|