Vantor Interview Question

When would you use a static variable and static member function