Solved

Given the Following Two Method Signatures, Explain the Reasoning Behind

Question 15

Essay

Given the following two method signatures, explain the reasoning behind how the C# compiler determines which method version to invoke for the call MyMethod(12):
private static void MyMethod(int a)
private static void MyMethod(int a, char b = 'B')

Correct Answer:

verifed

Verified

If two signatures are equally good, the ...

View Answer

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions