I have a class first in which I want to have another element that its type is another class. Something like this:
class first{
private:
    second secondAvl;
public:
    first():second(-1){}  // i get erroe here
} 
class second: public Tree{
private:
public:
 second(int key) :Tree(NULL,key1){} // here it worked to call contructor for tree
}
My problem is that when I try to call the constructor for second in class first constructor I get this error:
no matching function for call to 'second::second()'
Any help what I am doing wrong? Because I did the same thing when I called the constructor for tree in the second class and that worked fine.
 
     
     
    