Question: Use the Abstract Factory design pattern to show the declarations of C# or JAVA classes that are widget factories for the Windows and Unix

Use the Abstract Factory design pattern to show the declarations of C# or JAVA classes that are widget factories for the Windows and Unix operating environments to instantiate GUI objects, with the following interface: public interface WidgetFactory { public Window createWindow(); public Icon createlcon(string filename); public Menu createMenu(string name, string] entries); Suppose you have Windows, Icon and Menu classes defined already.
Step by Step Solution
3.39 Rating (149 Votes )
There are 3 Steps involved in it
Abstract Factory patterns work around a superfactory which creates other factories This factory is also called a factory of factories This type of design pattern comes under a creational pattern as th... View full answer
Get step-by-step solutions from verified subject matter experts
