Question: PLEASE DRAW ME A REAL DIGRAM * * * * * * Question 1 : Computer component You are writing a diagnostic utility to test
PLEASE DRAW ME A REAL DIGRAM
Question : Computer component
You are writing a diagnostic utility to test the various components of a computer system to ensure that they will work with your big, expensive enterprise application. You want to write one class for each computer component you diagnose: CPUTest, MemoryTest, and DiskTest. However, your utility needs to be crossplatform, and each class contains some platformspecific code. So for each type of test, you will have several implementations, one for each platform: PCMemoryTest, MacMemoryTest, LinuxMemoryTest, etc. Youd like your diagnostic utility to create and use the right test classes for the platform its running on without having to change a lot of code each time you add a new platform. You recall that there is a design pattern to solve this problem.
What design pattern would you use?
Draw a UML class diagram showing the relationships among participants in your design pattern.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
