Show an alternative diagrm for the hierarchy in exercise 8.1. Explain why it may be a better or worse approach than the original.

What will be an ideal response



The value of the organization is dependent on how the classes are used. The hierarchy in exercise 8.1 might be better suited to a system maintaining the inventory and online shopping for a store, whereas the hierarchy in exercise 8.2, centered around the mounting capabilities, might be better suited to a manufacturing system.

Computer Science & Information Technology

You might also like to view...

Which virus component is present in all viruses and is responsible for copying the virus and attaching it to a suitable host?

a. Search routing b. Infection routine c. Payload routine d. Trigger routine

Computer Science & Information Technology

Which statement is false?

a) assert is a useful debugging tool for testing if a variable has a correct value b) If NDEBUG is defined, only the next assertion is ignored. c) The assert macro is defined in the assert.h header file. d) One problem with using assert is that if the assertion is false, program execution is terminated; in some situations it is more appropriate to allow the program to continue executing after the program has dealt with the problem.

Computer Science & Information Technology