This site requires JavaScript, please enable it in your browser!
Greenfoot
Username
Password
Remember Me?
Sign Up, Lost Password
Activity
About
Documentation
Download
Discuss
Scenarios
Upupzealot
wrote ...
2012/10/15
Why dose the class "Greemfoot" has a public constructer?
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
2012/10/15
#
You don't want it, since it's useless for you :)
Upupzealot
2012/10/15
#
@SPower I'm just wondering, Greenfoot team won't publish an useless method, right?
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
2012/10/15
#
Yes you are right! So, let's just leave it alone~
You need to login to post a reply.
X