<<< Legacy Systems | Index | Object Design Principles >>> |
In procedural programming, any part of the program can add, modify, or delete any data in shared memory at any time.
This has a huge potential for some serious design and maintenance problems down the road.
Alternatively, the software can be implemented as a collection of objects.
Each object is defined by its attributes and its behaviors.
Combining certain data and operations to form an object is known as encapsulation. This separates data inside objects from "globally" shared memory.
<<< Legacy Systems | Index | Object Design Principles >>> |