Question

8. Each of the following heuristics helps make a good module according to some implementability or...

8. Each of the following heuristics helps make a good module according to some implementability or aesthetic principle. Identify the principle.

(1) Provide get and set methods for all attributes in a class that clients might be interested in, even if they are not all used in the current program.

(2) Do not reuse variables to hold different data.

(3) Avoid operations with only a single line of code.

(4) Keep operation parameters to five or less.

0 0
Add a comment Improve this question Transcribed image text
Answer #1

SOLUTION:

Implementability Principles :

  • Simplicity
  • Design with Reuse
  • Design for Reuse.

Aesthetic Principle

  • Beauty

1) This heuristic says that we should provide always methods to set and get attributes in a class. This comes under the implementability principle of Design of Reuse as we can reuse modules by setting and getting attributes every time.

2.) It says we should not reuse variables to hold different data.It comes under implementability principle of Simplicity, which is often called as Principle of Simplicity. This is because reusing variable to hold different data make it complex. Hence, we should avoid it as simple designs are better.

3.) This heuristic states that we should avoid operations with only a single line of code. It also comes under implementability principle of Simplicity.

4.) Keep operation parameters to five or less.It also comes under  implementability principle of Simplicity to keep the module simple.

Add a comment
Know the answer?
Add Answer to:
8. Each of the following heuristics helps make a good module according to some implementability or...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT