using System; using System.Collections.Generic; using System.Text; namespace Queue { public struct Animal {//定义接口 public int legs; public string name; public string color; public Animal(int legs, string name, string color)//结构内的重构 { this.legs = legs; this.name = name; this.color = color; } } }