A use case diagram depicts interactions between elements of a system and can be used to model a library management system. A class diagram illustrates relationships between classes and their dependencies using UML. It defines methods and variables in objects. A data flow diagram is a graphical model of how data moves through an information system, showing processes and used as a preliminary overview of a system.