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