An essential technique in software design is to decompose a system into distinct, manageable abstractions. However, there is little value in decomposing a piece of software into several parts if each part depends on all the other parts in a tangled mess of interactions. For a decomposition to be useful, the resulting abstractions have to be well isolated from each other. For good design, an idea that should be inseparable from that of software abstraction is encapsulation.

错误:搜索内容不能为空,请输入英文关键词
错误:关键词超出字数限制,请精简
高级检索

Encapsulation

  • Martin P. Robillard

摘要

An essential technique in software design is to decompose a system into distinct, manageable abstractions. However, there is little value in decomposing a piece of software into several parts if each part depends on all the other parts in a tangled mess of interactions. For a decomposition to be useful, the resulting abstractions have to be well isolated from each other. For good design, an idea that should be inseparable from that of software abstraction is encapsulation.