Originally posted by Pavel Kubal:
Now it makes sense
Originally posted by Ernest Friedman-Hill:
You're describing a sort of degenerate "Abstract Factory" pattern; usually the factory class (the one with the "create" method) is a separate class from the product class (the one that is created.) See here for more of a description.
Originally posted by Mahadevan GSS:
Definetely I used "Abstract Factory" pattern, but it is not a degenrate case . So tell me if you have any other method/way/suggestion to do same thing in "Abstract Factory" with above conditions.
Can you show me the real example of usage of the clone() method? Or whats the reason for this method?
Originally posted by Roger Chung-Wee:
Cloning is one way of making that copy of A, with the caveat that the cloning is shallow, not deep.