04/25/2024

1 thought on “Modeling entities

  1. Do you think you can essentially inject dependencies through a constructor if they help you get more expressive when creating methods? For example, Product :: price () can refer internally to a strategy (PricingStrategy), which will determine the price of a product based on discount campaigns, manufacturer promotions, etc.?

Leave a Reply

Your email address will not be published. Required fields are marked *