Right. Did you notice the inheritance relationship implied at the end of system 1's description (both short_range_missile and long_range_missile inherit from missile)?

More importantly, notice that neither answer involved any code or a particular programming language! The object-oriented, object-based, and functional decomposition approaches are all approaches to managing system complexity, and are mainly tools for our minds to help deal with complexity. You can use any approach in thinking about a problem, however, it's easier to implement a solution if the programming language directly supports the approach you choose.

You may go to the next section.

You may also:

PREVIOUS Go back to the question

OUTLINE  Go up to the outline of lesson 7

David A. Wheeler (dwheeler@dwheeler.com)

The master copy of this file is at "http://www.adahome.com/Tutorials/Lovelace/s7s1r1.htm".