Steps of Collection Classclass Leaf {private int intAge;private String strName;
// Default Constructor public Leaf() {}
// gets and sets the age valuepublic int Age {get {return intAge;}set {intAge = value;}}
// gets and sets the strName variablepublic string Name {get {return strName;}set {strName = value;}}}