Stack Exchange network consists of 180 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Object-oriented design involves trade-offs. In some cases there are perfectly optimal solutions but usually you can do things several different ways and the best choice is based on trade-offs.
By clicking “Accept all cookies”, you agree Stack Exchange can store cookies on your device and disclose information in accordance with our Cookie Policy.