123456789101112131415161718192021222324252627282930313233 |
- /**
- * Write a description of class Pet here.
- *
- * @author (your name)
- * @version (a version number or a date)
- */
- public class Pet
- {
- String name;
- String type;
-
- public Pet(String name){
- this.name = name;
- }
-
- public String speak(){
-
- return "";
- }
-
- public void setType(String type){
- this.type = type;
-
- }
-
- public String getName(){
- return name;
- }
-
- public String getType(){
- return type;
- }
- }
|