public void add(int num, Types_class type) { cab c; c.type = type; c.number = num; cabs.Add(c); }
public List <cab> filter(Types_class type) { List <cab> a = new List <cab>(); foreach (cab i in cabs) { if (i.type == type) { a.Add(i); } } return(a); }