12345678910111213141516171819202122232425 |
- import java.util.*;
- import java.lang.String;
- /**
- * Write a description of class Cat here.
- *
- * @author (your name)
- * @version (a version number or a date)
- */
- public class Cat extends Pets
- {
-
- /**
- * Constructor for objects of class Cat
- */
- public Cat(String name)
- {
- super(name);
- super.setPetKind("Cat");
- }
-
- public String speak(){
- return ("Meow");
- }
- }
|