Two objects in one

Hi, I want to unite the class Juego with the Class Pantallas to replace the golBayernD screen. How can I do this?

Here’s the code: GitHub - BautiFelli/tecnomultimedia at tp6