1234567891011121314151617181920 |
-
- /**
- * Write a description of class Dog here.
- *
- * @author (your name)
- * @version (a version number or a date)
- */
- public class Dog extends Pet
- {
- public Dog(String name){
- super(name);
- }
-
- @Override
- public String speak() {
- return "Grrrrrrr";
- }
-
- }
|