Software Engineering: Each of the following heuristics helps make a good module
ID: 3822158 • Letter: S
Question
Software Engineering:
Each of the following heuristics helps make a good module according to some modularity principle. Identify the principle. (a) Make all attributes of a class protected or private. (b) A class should capture exactly one key abstraction. (c) Make sure an operation needs all its parameters. (d) Spin off unrelated data into another class. (e) Minimize the number of classes with which a class collaborates. (f) Most of the operations in a class should use most of the attributes most of the time. (g) Model the real world whenever possible. (h) Do not change the state of an object without going through its public interface.Explanation / Answer
d) Spin Off Unrelated data into another class
By seperating unrelated data into another class will avoid the modification of other classes. If we seperate the unrelated data into different classes, So that there will be no relation between this classes , because of this if we do any modifications to one class there will be no effect to the other class. Other wise the the changes will be happen in different multiple classes.
This is the modularity principle
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.