FAQ 8.02 What's the best way to learn how to avoid improper inheritance?
The examples use simple ideas such as birds and ostriches, rational numbers and integers, stacks and lists, apples and fruit. Real-world problems don't directly use these words, but almost every improper inheritance situation maps to one of these simple examples. Anyone who doesn't understand the examples in this chapter will probably be hurt in the real world. |