Sorry I couldn't think of a better way to formulate my question so it could be a duplicate. I appologize in advance. Normally I would test this myself but I am currently on a workstation where I can't program.
Say we have the following code
public void testFunctions()
{
if(someFunction1() && someFunction2())
{
Console.WriteLine("I will never get here.");
}
}
private bool someFunction1()
{
Console.Write("Obviously I got here");
return false;
}
private bool someFunction2()
{
Console.WriteLine(", but will I ever get here?");
return false;
}
What is the output going to be when I call testFunctions?
Obviously I got here
Or:
Obviously I got here, but will I ever get here?