Talk About Network



Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Java Help > Re: static fiel...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 2 of 4 Topic 15976 of 16085
Post > Topic >>

Re: static field should be accessed in a static way

by Chase Preuninger <chasepreuninger@[EMAIL PROTECTED] > Apr 15, 2008 at 06:08 PM

then ccess it in a static way.

//non-static
MyObject o = new MyObject(...);
o.somethingStatic;

//proper static way
MyObject.somethingStatic;




 4 Posts in Topic:
static field should be accessed in a static way
ireallyneedtoknow2007@[EM  2008-04-15 18:00:32 
Re: static field should be accessed in a static way
Chase Preuninger <chas  2008-04-15 18:08:19 
Re: static field should be accessed in a static way
Roedy Green <see_websi  2008-04-16 03:18:09 
Re: static field should be accessed in a static way
Hendrik Maryns <gtw37b  2008-04-16 11:34:42 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat May 17 6:26:21 CDT 2008.