LLD - Design — Online Shopping Cart
Why does the following code cause an error?
Assuming totalPrice is a method in Cart.
order = Order()
order.totalPrice = cart.totalPrice
order.checkout()
Assuming totalPrice is a method in Cart.
