Search:

Type: Posts; User: Pratyush

Search: Search took 0.09 seconds.

  1. Replies
    7
    Views
    1,382

    Re: How to clone a singleton class?

    Thanks for the answer. I tried cloning a singleton. It was exactly the same as you have told. Like the non singleton instance.
  2. Replies
    7
    Views
    1,382

    Re: How to clone a singleton class?

    I got your context of getting confused that if suppose I am making a class singleton whats the exact reason I would like to clone it. Its just for my understanding I need to know when I make a...
  3. Replies
    7
    Views
    1,382

    Re: How to clone a singleton class?

    Not tried cloning an instance ever but I know that the class needs to implement the Cloneable interface and override the clone method of the object's class(Please correct if I am wrong anywhere). But...
  4. Replies
    7
    Views
    1,382

    How to clone a singleton class?

    I know to make a singleton class but if suppose I require to clone it how can that be done.
    If anybody can reply with sample code it would be better.

    Thanx in advance!
Results 1 to 4 of 4