Share via

C#---Exercise - Create reusable methods no correct answer::

shimsy Purushu C P 0 Reputation points
2024-02-23T10:47:08.0966667+00:00

Check your knowledge 1. Suppose there's a method named ConvertCurrency. Which of the following lines of code is a valid method signature? ConvertCurrency(); ConvertCurrency() { } void ConvertCurrency(){}; all the options are wrong, but its showing option 3 is correct, there is unnecessary semicolon in the option so its syntax error.

Azure | Azure Training

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.