static void Main(string[] args) { Machine1 M1 = new Machine1(); Machine2 M2 = new Machine2(); Machine3 M3 = new Machine3(); M1.Start(); M1.Stop(); M2.Start(); M2.Stop(); M3.Start(); M3.Stop(); }
static void Main(string[] args) { Machine1 m1 = new Machine1(); Machine2 m2 = new Machine2(); Machine3 m3 = new Machine3(); m1.Start(); m1.Stop(); m2.Start(); m2.Stop(); m3.Start(); m3.Stop(); }