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

Love podcasts or audiobooks? Learn on the go with our new app.