There, we have finished with the accessories.
Now let's try to also make the "Montre" class usable
without mechanisms and without copying
which we will leave to the side for now.
At this stage, we have completely defined the contents of the "Montre" class,
we have prevented copying,
and we have added the "+=" operator
allowing us to add accessories to our watches.
To make this class operational, we must add at least one constructor
since we have modified the constructor here,
the default constructor, provided by default, is no longer so.
We don't have the default constructor anymore,
so we must at least add it here.
Of course, the default constructor will do nothing
to initialize the mechanisms,
and so at this point we will simply comment this out,
to avoid any problem with using a pointer
that would not be initialized --
we will simply comment out this line.
Regarding the vector of pointers to accessories,
the default constructor
will create an empty vector
and so here, there is no problem.
We will be able to fill this vector using our "+=" operator.
So the default constructor suits us, as long as we
don't have this pointer
so we will comment it out for now
and come back to it in a subsequent episode.
That's it for creating watches.
Now, let's decide how to compute the price of watches,
and let's say that it is the sum of the prices of its accessories.
For that, we will override the "prix" method,
we override this "virtual prix" method
inherited from the "Produit" superclass.
We will decide that at first, the price of a watch is its base value,
that we fetch through the original "prix" method,
inherited from the "Produit" superclass.