Pregunta de entrevista de Kinaxis

How does inheritance work in Java?