BSK-Baesick / LOGARHYTHM

A Version Control Repository of "LOGARHYTHM"
MIT License
1 stars 0 forks source link

BaeSICK Q&A: "Multiple Return Type Values" #2

Open BSK-Baesick opened 5 years ago

BSK-Baesick commented 5 years ago

Is it possible to have a two or more different return types on a method?

BSK-Baesick commented 5 years ago

According to my research, you could use these methods to return multiple values (None of the methods below are verified as "correct" yet):

1.) Making your method "abstract".

2.) Making your method type "dynamic".

3.) Converting the method type.

4.) Using a "Tuple" Class.