Do you prefer beer or cola? Perhaps it depends on your mood? Either way, the most logical interface between humans and beer or between humans and cola can be expressed in a single word: "drink". Implement the Drink interface in the Beer and Cola classes.
Don't mix beer with cola
You must be signed in to leave a comment
This page doesn't have any comments yet