コード例 #1
0
ファイル: Program.cs プロジェクト: SerKalayder/Csharp-code
		public Car()
		{
			tank = new Tank(100);
			engine = new Engine (tank);
		}
コード例 #2
0
ファイル: Program.cs プロジェクト: SerKalayder/Csharp-code
		public Engine(Tank tank)
		{
			// subscribe to event 
			tank.tankEmpty += Stop;
		}