Chapter 9 listing 9.1


Hi Everyone

I have a quick question regarding Listing 9.1

In the Crimelab Class you made the mAppContext member variable private, but shouldn’t it be public, when using eclipse I get the yellow warning triangle when it is set to private, but when I make it public the triangle disappears, which leads me to believe it should be public. Am I right by doing this.


The yellow triangle appears because, for the time being, that field is not used internally. It’s still not used if you make it public, of course, but it does make the warning go away.

Don’t worry about that warning for now. Later on, mAppContext will be used, and the warning will go away.