In this lesson, we’ll identify and design the classes, abstract classes, and interfaces based on the requirements that we have previously gathered from the interviewer in our jigsaw puzzle.

Components of a jigsaw puzzle

As mentioned earlier, we should design the jigsaw puzzle using a bottom-up approach.


The Side class represents the shape of our jigsaw piece and whether it contains an indentation, extrusion, or flat edge. The UML representation of the class is shown below:

Level up your interview prep. Join Educative to access 70+ hands-on prep courses.