educative.io

Sometimes creating new objects is more expensive than copying existing objects


#1

The course says " * Sometimes creating new objects is more expensive than copying existing objects.". This needs more explanation. Why is that the case? Database calls? Network calls?

" * The number of classes in a system can be greatly reduced by varying the values of a cloned object from a prototypical instance." -> How? This can use examples