+ 1

Java

what does mean "public class"

4th Jan 2017, 11:17 PM
Federico Nardo
Federico Nardo - avatar
4 RĂ©ponses
+ 1
It's how you declare a class in java. To organize bigger programs you'll probably use multiple classes. Usage: public class ClassName{ //whatever code you want, probably a constructor, variables and functions }
4th Jan 2017, 11:26 PM
Robobrine
Robobrine - avatar
0
yes but "class", is it a keywords ? I'm sorry, i'm a newbie
4th Jan 2017, 11:41 PM
Federico Nardo
Federico Nardo - avatar
0
Yes, it tells the program that what comes next is just a normal class.
4th Jan 2017, 11:49 PM
Robobrine
Robobrine - avatar
0
thank you so much
5th Jan 2017, 10:51 AM
Federico Nardo
Federico Nardo - avatar