+ 1

Can you define a function outside a class in Java??

Java

22nd Jul 2018, 9:36 PM
Israel Emmanuel
Israel Emmanuel - avatar
3 Réponses
+ 5
Java is fully OOP so there isn't anything possible outside of classes.
23rd Jul 2018, 12:21 AM
John Wells
John Wells - avatar
+ 1
Thank you John Wells ... I just needed some clarification on that.
23rd Jul 2018, 6:15 AM
Israel Emmanuel
Israel Emmanuel - avatar
0
no, why would you wanna do that anyway?
22nd Jul 2018, 10:24 PM
Jeremy
Jeremy - avatar