示例#1
0
 public void GiveAPet(string type)
 {
     HaveAPet = true;
     Input input = new Input();
     if(type == "Cat")
         X = new Cat(input.GetString("\nName"));
     else
         X = new Dog(input.GetString("\nName"));
 }
示例#2
0
 public void Delete()
 {
     X = null;
     HaveAPet = false;
 }