0

In java program we class . What we want to use after class. The tutorial showing the phrase My class. Can i use any other insted

Of my class

28th Aug 2020, 3:35 AM
Nithyananthan
2 odpowiedzi
+ 1
If you mean whether you can change MyClass at "class MyClass", Yes you can. It's a name of the class and you can name any you want.
28th Aug 2020, 3:41 AM
你知道規則,我也是
你知道規則,我也是 - avatar
0
you can but if there is main() in the class and you are not on sololearn, class name has to be same as file name
28th Aug 2020, 11:06 PM
zemiak