+ 3

Return from class methods

Can we use return statement in Class Methods?

30th May 2018, 10:53 AM
Aditya Upadhyay
Aditya Upadhyay - avatar
2 ответов
+ 2
Yes we can except if you have used void.
31st May 2018, 3:56 AM
Peter Muriithi
Peter Muriithi - avatar
0
yes
30th May 2018, 10:57 AM
Jakub Stasiak
Jakub Stasiak - avatar