How to compare 2 objects' private member?
<p>I have 2 class:</p>

<pre><code>class A
{
    int aa;
};
class B
{
    int bb;
};
class C
{
    public:
        bool equal(A&amp; av,B&amp; bv)
        {
            return (av.aa==bv.bb);
        }
};
</code></pre>

<p>Of course, class C has compilation error cause of private members' access.
Is there a way to implement that <code>equal()</code> member of class C ?</p>
