Having following general definitions:
fault - a cause of the error (mistake in coding)
error - incorrect state that may lead to failure
failure - deviation of the service from the correct service
What would be the correct application on the following code:
The code should not allow withdrawal when there is a balance of 100 or less
if (Balance<100)
{
return false;
}
else WithDraw();
So as I understand it, the fault is the missing = operator. But what will be the error and failure?