Non static method cannot be called statically. Static переменные c++. статическая переменная c++.