• Post Reply Bookmark Topic Watch Topic
  • New Topic

wrapper classes

 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can I have a wrapper class for static variables
 
Nathan Paris
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You could have a wrapper class that provides a getter/setter for the static as long as it has permissions.
I.e.
class Base
{
protected static ... myStatic;
}
class Wrapper extends Base
{
public static getMyStatic()
{
return myStatic ;
}
}
 
Gravity is a harsh mistress. But this tiny ad is pretty easy to deal with:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!