Give the code in any language based on the uml class


A software company MicroOffice has produced four generations of Word Processing Applications, called Word90, Word00, Word10, and Word15. Suppose you are writing a program to test their GUIs. The GUI components we are interested in are Panel, Button, and Textbox. These GUI components look a little different in different generation. Each generation has it own program for testing these GUI components. To know which test to run, you will need to instantiate objects that correspond to each one of the GUI components. We assume that generation of the Word to be tested is stored in a configuration file (text file). Because this situation fits the Abstract Factory pattern so well, you can use that pattern to organize the creation of objects that correspond to GUI components. You will also need to use the singleton pattern to ensure that the instance of each concrete factory is unique.

Questions

1) Give the UML diagram. You should have one single diagram that includes both abstract factory and singleton patterns.

2) Give the code (in any language) based on the UML class diagram given in 1). As output, you need to display three different messages (e.g., "Panel Word90", Button Word90", and "Textbox Word90") for the generation specified in configuration file.

Solution Preview :

Prepared by a verified Expert
Programming Languages: Give the code in any language based on the uml class
Reference No:- TGS01723567

Now Priced at $40 (50% Discount)

Recommended (95%)

Rated (4.7/5)