FAQ 8.02 What s the best way to learn how to avoid improper inheritance?

FAQ 8.02 What's the best way to learn how to avoid improper inheritance?

graphics/new_icon.gif

Work a few simple examples, such as those provided in this chapter. Then get lots of experience working with people who understand this issue. And ignore your intuition.

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.



C++ FAQs
C Programming FAQs: Frequently Asked Questions
ISBN: 0201845199
EAN: 2147483647
Year: 2005
Pages: 566
Authors: Steve Summit

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net