My assignment tells me to use both private and public parts from a parent class in a child class.
However doing something like
class CarInsurance: public Insurance, private Insurance
{
public:
//some stuff...
private:
//some more stuff...
}
is a duplicate of the same class, which is not possible.
Is there any other way to do this without having to make multiple child classes? I just want to have one child class, which can use both public and private parts from the parent class.