1

Custom constructor as a simple method

view story
linux-howto

http://stackoverflow.com – I have a class called Screen. Each time I want to set a new Screen in my application, I call the following method: public void setScreen(Screen screen) { if(this.screen != null) { this.screen.pause(); this.screen.onDispose(); } this.getGraphics().drawColor(Color.BLACK); // Clear virtual framebuffer this.screen = screen; this.screen.load(); this.screen.resume(); WSLog.e(Game.GAME_ENGINE_TAG, this, "New Screen has been created"); } Now my question is: Is it permissible to replace the constructor's function with (HowTos)