Static and automatic class object difference

In reply to Parveez ahamed:

Compiled the same code in VCS. But i didnt get any compilation message like above… Code runs smoothly.