A class diagram describes the structure of a system by showing its classes, their attributes, methods, and their relationships. It's one of the many diagrams of UML and a most common one. Knowing how to create a class diagram could give you an advantage and it's a useful skill to have. Creating a class diagram could come as an interview question.