Implement a function to invoke a static method from a class object.