I read the answer in parashift but I need bit details as to why compiler won\'t allow to define static member variable in constructor.
1) Static variables are property of the class and not the object. 2) Any static variable is initialized before any objects is created.