http://qs321.pair.com?node_id=867717


in reply to Re^2: Conditional inheritance strategy
in thread Conditional inheritance strategy

Maybe you want then My->from_xml and/or My->from_json? Why is it important that My objects are XML or JSON objects? It seems to me that they should maybe be able to display or store themselves as XML or JSON, which I would put into a separate plugin or serialization class.