Skip to content

Instantly share code, notes, and snippets.

@CarlosHenriqueDv
Created February 9, 2023 00:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save CarlosHenriqueDv/3a8eafdef9c8d2d6be192a817e305d1e to your computer and use it in GitHub Desktop.
Save CarlosHenriqueDv/3a8eafdef9c8d2d6be192a817e305d1e to your computer and use it in GitHub Desktop.
public class GuiMain {
public static void main(String[] args) {
GuiFactory factory = new WindowsGuiFactory();
App windowsApp = new App(factory);
windowsApp.configuracaoGuiApplication();;
System.out.println( );
factory = new LinuxGuiFactory();
App linuxApp = new App(factory);
linuxApp.configuracaoGuiApplication();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment