From interaction diagrams, the definitions of class diagrams can be generated.
When we draw interaction diagrams, a set of classes and their methods emerge.
Draw interaction diagrams before class diagrams.
But in practice, especially when following the agile modeling, these complementary dynamic(interaction) and static(class) views are drawn concurrently.