1234567891011121314151617181920212223 |
-
- /**
- * Write a description of class Cat here.
- *
- * @author (your name)
- * @version (a version number or a date)
- */
- public class Cat extends Pet{
-
- public String getName() {
- return name;
- }
-
- public void setName(String name) {
- this.name = name;
- }
-
- public String speak() {
- return "Meow";
- }
- }
-
|