What does a void subroutine return?

后端 未结 2 1572
清酒与你
清酒与你 2021-01-28 07:46

I was just doing an assessment on pluralsight and was given the following question.

\"What does a void subroutine return?\"

I was under the impression that a vo

2条回答
  •  离开以前
    2021-01-28 08:15

    A method, whose return type is void, it does not return anything. You could execute any statements you want inside the method's body. Furthermore this statements can affect anything you want, but at the end of the day your method will not return something.

提交回复
热议问题