Cucumber step definition class in a singular instance works well but Cucumber works much better when we have multiple classes in which we can write multiple steps. When writing multiple step definition classes we can easily separate step definitions and group them into logical categories. We can easily write step definitions into groups which we can decide on how to approach. An example of this may be to group classes in objects, domains etc.
Cucumber Step Definition Class Video Tutorial
In this video tutorial we will go through setting up multiple classes to help manage us cucumber step definitions.