123456789101112131415161718192021222324252627282930313233343536373839 |
- import java.lang.String;
- import java.util.*;
- /**
- * Created by leon on 11/6/17.
- */
- public class Pets {
- String name;
- String petKind;
- /**
- * Constructor
- */
-
- public Pets(String name)
- {
- this.name = name;
- }
-
- public void setName(){
- this.name = name;
- }
-
- public void setPetKind(String petKind){
- this.petKind = petKind;
- }
-
- public String speak(){
- return null;
- }
-
- public String getName(){
- return this.name;
- }
-
- public String getPetKind(){
- return this.petKind;
- }
-
- }
|