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