Vidyalelo
C# Programming · Q219

Classes and Objects in C Sharp

Programming · C# Programming · question 219

Q219

Which of the following statements are correct about functions?

A.
C# allows a function to have arguments with default values
Answer
B.
Redefining a method parameter in the method's body causes an exception
C.
C# allows function to have arguments with default values
D.
Omitting the return type in method definition results into exception

Answer: Option A

Solution

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