Which keyword defines a method in C#?
-
A
method
-
B
function
-
C
def
-
D
None needed
Correct answer
Correct answer
D. None needed
15 views
Explanation
Methods in C# are defined without any special keyword, just the return type and method name.
Doubts & discussion
Not sure why the answer is D? Ask here and get an explanation.
Ask a doubt about this MCQ