Design problem- one function calls all three
<pre><code>class Feature{};

class IFat
{
   //init feature for IFat

   vector&lt;Feature&gt; vf;
};
class IThin
{
   //init feature for IThin
   vector&lt;Feature&gt; vf;
};

class ISlim
{
    //init feature for ISlim
    vector&lt;Feature&gt; vf;
};

void func(IFeature_Vector)
{
     //accessing vf depending on IFeature_Vector passed in
}
</code></pre>

<p>I would like to know if there is a nice neat way to make one func that can call each instance without having to call three times for each case. I'm sorry to say this that I know this is a jurasic problem but I just can't think up a good solution while I am so much crazy for it. I hope you understand my problem. I am thankful if you could help.</p>
