Example #1
0
 public Train()
 {
     seats        = new train_seats();
     train_number = obj_count;
     ID           = GetHashCode();
     obj_count++;
 }
Example #2
0
 public Train(train_seats ts, int tn, string d = "Moscow")
 {
     destiny      = d;
     train_number = tn;
     seats        = ts;
     obj_count++;
     ID = GetHashCode();
 }
Example #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();
 }