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