Question: solve the zbove problem from software system architecturePROBLEI The design of the system is shown above. In this system Client _ A uses objects of

solve the zbove problem from software system architecturePROBLEI
The design of the system is shown above. In this system Client_A uses objects of classes Selection_Sort and
Insertion_Sort, Client_B uses objects of classes Heap_Sort and Merge_Sort, and Client_C uses objects of
classes Quick_Sort and Bubble_Sort.
Client_A would like to use objects, operation Esort(), of classes Heap_Sort and Merge_Sort by invoking
operation Sorting(). Client_B would like to use objects, operations Sort(), of classes Quick_Sort and
Bubble_Sort by invoking operation Esort(). In addition, Client_C would like to use objects, operation
operation Esort(), of classes Heap_Sort and Merge_Sort by invoking operation Sort().
Provide a design with minimal modifications to the existing system using the Adapter design pattern in
which
(1) Client_A can use objects of classes Heap_Sort and Merge_Sort by invoking operation Sorting(),
(2) Client_B can use objects of classes Quick_Sort and Bubble_Sort by invoking operation Esort(), and
(3) Client_C can use objects of classes Heap_Sort and Merge_Sort by invoking operation Sort().
Notice that none of the classes shown in the above class diagram should be modified.
Provide two solutions that are based on:
An association-based version of the Adapter pattern
An inheritance-based version of the Adapter pattern
Provide a class diagram for each solution. You do not have to provide any description for classes/operations
of the above class diagram (only new classes/operations should be described using pseudo-code).
 solve the zbove problem from software system architecturePROBLEI The design of

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!