?
:
public class Vehicle
{
private bool isEngineStarted;
private void StartEngine()
{
this.isEngineStarted = true;
}
public void GoToLocation(Location location)
{
if (!this.isEngineStarted)
{
this.StartEngine();
}
}
}
, isEngineStarted , .. . , Vehicle , , . , , -, : , .
?
, . , . .
, /. , , StartEngine , true this.isEngineStarted. isEngineStarted , true, , StartEngine. isEngineStarted .