• Post Reply Bookmark Topic Watch Topic
  • New Topic

regarding static variable  RSS feed

 
jagan bisoyi
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi guys!

Can a variable be static + private ?
If a class is public how can I access a static private variable residing
in it?

Any answers please ,I need a reply.

 
Amit Ghorpade
Bartender
Posts: 2856
10
Fedora Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why dont you try it yourself ?
Please ShowSomeEffort.
[ July 23, 2008: Message edited by: Amit Ghorpade ]
 
Campbell Ritchie
Marshal
Posts: 56536
172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I agree with Amit Ghorpade. And as for private variables in public classes, that is a standard feature of object-oriented design.
Originally posted by jagan bisoyi:
Any answers please ,I need a reply.
Patience, please!!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!