How to call a member function from another class without creating an object ?