Hello friends,
Thanks for all your help and consideration. I would now like to throw my question again but in some more detail.
Actually, I was studying Singleton pattern. For singleton, it is necessary to have one and only instance to be made and the method through which this would be done will be globally accessible. But there is a problem with singleton pattern that if, when that instance is going to be made for the first time, more than two people simultaneously tried to make the instance, two instances will be made which is a problem. We have the option of making our method or inner sub part of the method as synchronized but that would also be nonsense since it will only be usefull for the time when the instanec be made but then we will seriously downsize our application performance. Now from hereon, I come to know from someone that there is also a "double dispatcher" pattern which has a very close relationship with that singleton pattern. well, so now please can anyone explain what is double dispatch pattern.
thanks, take care
from shehzad