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);
- super.setType("Dog");
-
- }
-
- public String speak(){
- return "woof";
- }
-
- }
|