Skip to content

Conversation

@leoamaro01
Copy link

No description provided.

Changed Units property's "set" accessor back to private.
Added AddUnits(int) method for this purpose.
Reformatted Add method in Cart to reflect this change.
@leoamaro01
Copy link
Author

There is a problem with these changes, the catalog product objects are the same as those in the cart, not copies, so when the Units property of a Product object is changed in the cart, the change is reflected in the catalog.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant