Beginners may unintentionally modify shared objects.
A common pitfall is accidental modification of shared objects. For example, if multiple carts hold references to the same `Product`, changing its price in one cart affects all carts. This can lead to bugs where changes are unexpectedly propagated. Proper encapsulation and use of immutable objects can mitigate such issues.
Additional Notes
What are shared object usage pitfalls in beginner code?