friendship: many classes from same parent
<p>How can I reach <code>privateMember</code> without <code>friend</code> in all of the derived classes?</p>

<pre><code>class parent{...};  //a virtual class

class A: public parent{...};
class B: public parent{...};
class C: public parent{...};
class D: public parent{...};
class E: public parent{...};
...
//each has a function, that want access to privateMember

class MyClass{
    int privateMember;

    friend parent;
    //I know it doesnt't work, but this shows the best what I want   
}
</code></pre>
