Solved

Given the Following Two Method Signatures, Explain the Reasoning Behind

Question 24

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

Unlock this Answer For Free Now!

View this answer and more for free by performing one of the following actions

qr-code

Scan the QR code to install the App and get 2 free unlocks

upload documents

Unlock quizzes for free by uploading documents