Lecture overview -- Keyboard shortcut: 'u'  Previous page: Visible and Hidden aspects -- Keyboard shortcut: 'p'  Next page: Representation Independence -- Keyboard shortcut: 'n'  Lecture notes - all slides together  Annotated slide -- Keyboard shortcut: 't'  Textbook -- Keyboard shortcut: 'v'  Alphabetic index  Help page about these notes  Course home    Classes and Objects - slide 9 : 29

Program modification - the Fire Analogy

A minor modification of a program may spread as a fire throughout the program.

Such a fire may ruin most of the program in the sense that major parts of the program may need to be reprogrammed.

 

The use of firewalls prevents the spread of a fire.

Similarly, encapsulation and visibility control prevent program modifications from having global consequences.