A) Inheritance.
B)Polymorphism .
C)Encapsulation.
D) Abstraction.
Answer C.
Explanation.
B)Polymorphism .
C)Encapsulation.
D) Abstraction.
Answer C.
Explanation.
The basic idea underlying
modular design is to organize a complex system (such as a large program, an
electronic circuit, or a mechanical device) as a set of distinct components
that can be developed independently and then plugged together. Although this may
appear a simple idea, experience shows that the effectiveness of the technique
depends critically on the manner in which systems are divided into components
and the mechanisms used to plug components together. The following design
principles are particularly relevant to parallel programming. Ensure that modules hide information.
- related functions that can benefit from a common implementation or that are used in many parts of a system,
- functionality that is likely to change during later design or deployment,
- aspects of a problem that are particularly complex, and/or
- code that is expected to be reused in other programs.
The benefits of
modularity do not follow automatically from the act of subdividing a program.
The way in which a program is decomposed can make an enormous difference to how
easily the program can be implemented and modified. Experience shows that each
module should encapsulate information that is not available to the rest of a program. This information
hiding reduces the cost of
subsequent design changes.
No comments:
Post a Comment
Note: only a member of this blog may post a comment.