static void Main(string[] args) { Developer desktopDeveloper = new DesktopDeveloper("DesktopDev"); App desktopApp = desktopDeveloper.CreateApp(); Developer webDeveloper = new WebDeveloper("WebDev"); App webApp = webDeveloper.CreateApp(); }
static void Main(string[] args) { Company mobDev = new MobileDeveloper(); Company webDev = new WebDeveloper(); Application mobApp = mobDev.CreateApplication(); Application webApp = webDev.CreateApplication(); mobApp.OpenApplication(); webApp.OpenApplication(); // OUTPUT // Swift // Wordz // Web app opened! // Safari // Wordz }