Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • 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 ;
}
}
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic