Just a thought | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
+ 1

Just a thought

I was wondering if you could call/run a method in a case switch statement?

8th Jan 2018, 9:09 PM
Ilan Horesh
Ilan Horesh - avatar
2 Respostas
0
Yeah
8th Jan 2018, 9:21 PM
Ilan Horesh
Ilan Horesh - avatar
0
Yes, you can. one example in C# (dates back a year or so ago - below) But I have done this in other languages as well. https://code.sololearn.com/ciY8vD9g7X03/?ref=app
8th Jan 2018, 9:45 PM
FrƩdƩric Charette
FrƩdƩric Charette - avatar