Exemplo n.º 1
0
 /// <summary>
 /// Method to remove a hobby from the hobby collection
 /// </summary>
 /// <param name="hobby">Hobby object to be removed</param>
 public void Remove(Hobby hobby)
 {
     List.Remove(hobby);
 }
Exemplo n.º 2
0
 /// <summary>
 /// Method to add hobby to the hobby collection
 /// </summary>
 /// <param name="hobby">Hobby object to be added</param>
 public void Add(Hobby hobby)
 {
     List.Add(hobby);
 }