class obj { void memberfuntion(AnotherObj* aobj){ aobj.function(); } }