Home / MCQ Bank / Computer
Computer Introduction To C Sharp

What is the correct syntax to define a method in C#?

Select the best option to verify your answer:
Show Correct Answer
Correct Answer: Option D • void methodName() { /* method body */ }

Related Computer Questions

What is the purpose of the static keyword when applied to a method in C#? In binary tree sort, we first construct the BST and then we perform ______ traversal to get the sorted order. A binary tree is balanced if the difference between left and right subtree of every node is not more than ______ Which of the following snippet will effectively generate random numbers? In Hive, what is the role of the STORED BY clause in a CREATE TABLE statement?