public Window() { if (this.isPlatFormX) { wndImp = new XWindowImp(); } else if (this.isPlatFormMac) { wndImp = new MacWindowImp(); } }