Kinaxis interview question

How does inheritance work in Java?