Ejemplo n.º 1
0
 public Train()
 {
     seats        = new train_seats();
     train_number = obj_count;
     ID           = GetHashCode();
     obj_count++;
 }
Ejemplo n.º 2
0
 public Train(train_seats ts, int tn, string d = "Moscow")
 {
     destiny      = d;
     train_number = tn;
     seats        = ts;
     obj_count++;
     ID = GetHashCode();
 }
Ejemplo n.º 3
0
 public Train(int tn, string d, int h, int m, train_seats ts)
 {
     destiny      = d;
     train_number = tn;
     seats        = ts;
     hour         = h;
     minute       = m;
     obj_count++;
     ID = GetHashCode();
 }