TOM is responsible for designing a system that she knows will be subject to frequent requests for additional functionali
Posted: Tue May 24, 2022 8:18 am
TOM is responsible for designing a system that she knows will be
subject to frequent requests for additional functionality.
The system she is developing will comprise objects of many varied
types and the methods used are likely to be applicable across any
number of these objects. TOM is keen on software quality and
reuse is a big consideration for her and the organisation she works
for. With that in mind TOM would like to ensure that the
system is capable of facilitating extensions to behaviour without
significant structural changes.
Based on the above scenario, choose one or more of the following
which is more appropriate for TOM.
a.
TOM should use the Proxy design pattern as this allows for the
substituting one object for another.
b.
TOM should make extensive use of inheritance and
overloading.
c.
Maria should write the code so that all methods are in the same
class so as to avoid having to modify many classes based on
requests for new functionality.
d.
TOM should use the Prototype design pattern as this allows for
copying objects in a way independent of classes and thus saving
time.
e.
TOM should use the Visitor design pattern as this allows
uncoupling of algorithms from the objects on which they
operate.
subject to frequent requests for additional functionality.
The system she is developing will comprise objects of many varied
types and the methods used are likely to be applicable across any
number of these objects. TOM is keen on software quality and
reuse is a big consideration for her and the organisation she works
for. With that in mind TOM would like to ensure that the
system is capable of facilitating extensions to behaviour without
significant structural changes.
Based on the above scenario, choose one or more of the following
which is more appropriate for TOM.
a.
TOM should use the Proxy design pattern as this allows for the
substituting one object for another.
b.
TOM should make extensive use of inheritance and
overloading.
c.
Maria should write the code so that all methods are in the same
class so as to avoid having to modify many classes based on
requests for new functionality.
d.
TOM should use the Prototype design pattern as this allows for
copying objects in a way independent of classes and thus saving
time.
e.
TOM should use the Visitor design pattern as this allows
uncoupling of algorithms from the objects on which they
operate.