Vidyalelo
C# Programming · Q13

Functions and Methods in C Sharp

Programming · C# Programming · question 13

Q13

What is the correct way to define a method named PrintMessage that does not take any parameters and does not return any value in C#?

A.
PrintMessage(void)
B.
void PrintMessage(void)
C.
PrintMessage()
D.
void PrintMessage()
Answer

Answer: Option D

Solution

Answer: Option D
No explanation is given for this question Let's Discuss on Board