Imagine I have a static class and a static method inside that. And it has to be accessed by 10 different classes. But how the static class will know who has called it 🙁
It was an interview question….please rephrase it properly and answer me, I am new 🙁
I would try the following:
Just passing an instance is the simplest you can do here.