I mean, it should be natural to get an object of class My instead of My::XML or My::JSON.I am not sure if I understand your question, but clients of your factory would usually not bother weather they have a XML or a JSON instance but work through the interface that the base-class (My::Base) provides.
In reply to Re^3: Conditional inheritance strategy
by morgon
in thread Conditional inheritance strategy
by citromatik
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |