Hi Jordan Miles, Thank you for reading the blog. We did solved the “software entities … should be open for extension, but closed for modification”. Our User class is not modified if we have to make a new offer. However with the help of the UserOffer class, we have extended the User class. Every offer would contain some business logic and has to written down manually in both the approaches.

Senior Staff Engineer @freshworks. Ex-McKinsey/Microsoft/Slideshare/SAP, Tech Enthusiast, Passionate about India. Opinions are mine

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store