private void Form1_Load(object sender, EventArgs e) { Car car = new Car(100); Lorry lorry = new Lorry(500, 50); richTextBox1.Text += car.CarText() + "\n" + lorry.CarText(); }
private void Form1_Load(object sender, EventArgs e) { Lorry lorry = new Lorry(500, 50); richTextBox1.Text += lorry.CarText(); }