Ensure non-static methods cannot be invoked with class