C#
- 18 ответов
- 0 вопросов
15
Вклад в тег
class Bus{
public string Model {get;}
public string Number {get;}
public Driver Driver {get;}
public Line Line{get;}
public Bus(string model, string number, Driver driver, Line line){
Model = model;
Number = number;
Driver=driver;
Line=line;
}
}
class Driver{
public string Name {get;}
public Driver(string name){
Name = name;
}
}
class Line{
public DateTime GoTime {get;}
public string Number {get;}
public Line(DateTime goTime, string number){
GoTime = goTime;
Number = number;
}
}