Difference between static method and class method and its usage