This week's book giveaway is in the Mac OS forum. We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line! See this thread for details.
Well why would the compiler complain at all ? A member variable of the class and a local variable of the method are entirely different in all aspects . I dont think its a matter of preference , but the method show() can not see the variable 'x' directly like this. Non static Member variables have to be accessed via this.x .
Muhammad Saif Asif Mirza
OCJA(5/6) OCJP(6) OCJWCD(6)