This site requires JavaScript, please enable it in your browser!
Greenfoot back
Upupzealot
Upupzealot wrote ...

2012/10/15

Why dose the class "Greemfoot" has a public constructer?

Upupzealot Upupzealot

2012/10/15

#
In what condition would you want to have a new greenfoot object? Since all methods in the class are static...
SPower SPower

2012/10/15

#
You don't want it, since it's useless for you :)
Upupzealot Upupzealot

2012/10/15

#
@SPower I'm just wondering, Greenfoot team won't publish an useless method, right?
SPower SPower

2012/10/15

#
The problem is that they didn't write a constructor, which causes the JVM to create one, which will be public.
Upupzealot Upupzealot

2012/10/15

#
Yes you are right! So, let's just leave it alone~
You need to login to post a reply.