Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Java Java Objects (Retired) Creating the MVP Remaining Tries

Heather Gray
Heather Gray
6,225 Points

exposing variable "off the class"?

I had to take a break from the course for a couple of weeks and I've forgotten what exposing a variable "off the class" means. Google didn't have any answers for this particular phrase.


1 Answer

In this case, he means two things: (1) he is going to make the constant public, rather than private. (2) He is creating it in the class, rather than in a method.

So we are going to add a constant.
And it's going to be exposed, right?
So we want public.
We might as well expose this off the class, right?