but if declare static variable in class,it will report error.