<?xml version="1.0" encoding="windows-1252"?>
<node id="984503" title="Re: Inheritance: parent class determine which child class to use?" created="2012-07-30 15:54:03" updated="2012-07-30 15:54:03">
<type id="11">
note</type>
<author id="822218">
fbicknel</author>
<data>
<field name="doctext">
&lt;p&gt;I do appreciate your reply.  You said Car-&gt;new, then had a means of
figuring out it was a BMW, so I'll take that as a + vote (not literally,
of course).&lt;/p&gt;

&lt;p&gt;Got your caution about circular dependancies.  This seems at least to be
a limited breach of said contract.  Just call Car-&gt;new once,
then forevermore know that the returned object is typed according to
your specifications.  No harm in that?  &lt;grin&gt;&lt;/p&gt;
</field>
<field name="root_node">
984496</field>
<field name="parent_node">
984498</field>
</data>
</node>
