I would like to prevent foo() from being executed by any other class than B. How can I check which class created object A?I would like to prevent foo() from being execut
I would like to prevent foo() from being executed by any other class than B. How can I check which class created object A?I would like to prevent foo() from being execut