clear() updating, abstract;
The clear method of the Collection class removes all entries (object references) from a collection.
The objects that are removed are not deleted; they are simply no longer in the collection.
If the collection is not instantiated, the clear method instantiates it. However, if the collection is frozen, exception 1106 (Can not update a frozen object) is raised.