123456789101112131415161718192021222324252627282930 |
-
- /**
- * Write a description of class BabyDucks here.
- *
- * @author (your name)
- * @version (a version number or a date)
- */
- public class BabyDucks extends Pet
- {
- // instance variables - replace the example below with your own
- private int x;
- public BabyDucks()
- {
- // initialise instance variables
- x = 0;
- }
-
- /**
- * An example of a method - replace this comment with your own
- *
- * @param y a sample parameter for a method
- * @return the sum of x and y
- */
-
- @Override
- public String speak(){
- return "All your base are belong to us.";
- }
- }
|