SyntaxFix
Write A Post
Hire A Developer
Questions
bar is your static variable and you can access it using Foo.bar.
bar
Foo.bar
Basically, you need to qualify your static variable with Class name.