constructor and destructor between two different class
<p>So, I try to create two class that pointing to each other (has a pointer to the other class as private variable) here is the code:</p>

<pre><code>class Fruit
{
public:
    Fruit(){
    }
private:
    Plant *thisPlant;
}

class Plant
{
public:
    Plant(){
      thisFruit= new Fruit();
    }
private:
    Fruit *thisFruit;
}
</code></pre>

<p>I am not sure what should I put in the Fruit constructor. I think I can't put new Plant() because it will pointing to a new plant, and it also will create an error. I want to have something like this: Plant has a variable pointing to Fruit. And the Fruit has a variable pointing to the Plant. Because I will use some Fruit's public method in Plant class, vice versa.</p>

<p>Regarding the destructor, I just want to clarify one thing. when I destroy the Fruit variable, if I do not put command "delete thisPlant;" the object Plant isn't destroyed right? thx</p>
