Return multiple values to a method caller

前端 未结 26 2310
故里飘歌
故里飘歌 2020-11-21 21:57

I read the C++ version of this question but didn\'t really understand it.

Can someone please explain clearly if it can be done and how?

26条回答
  •  抹茶落季
    2020-11-21 22:43

    Mainly two methods are there. 1. Use out/ref parameters 2. Return an Array of objects

提交回复
热议问题