When a derived class is created, an instance of it's base class is also created. In your case there is no default constructor for the Comanda class. That is, you need a constructor that looks like this:
> you need a constructor that looks like this:
> Comanda::Comanda() {}
hardly a good idea
simply specify the constructor that you want to call
By instance
I am not feeling well today, and obviously it shows. I feel like 10 metres of pump water and am running on about 3 Watts. After posting this morning, I took some more drugs and went back to bed !! So no more giving advice from me for the next few days - going to hibernate instead.