What is the difference between class and module?
Answer / Mohit Singh
In Ruby, both classes and modules are used for code organization. However, classes represent objects or instances with methods, while modules only contain methods that can be included in classes to extend their functionality. Classes are used more frequently for defining object-oriented concepts, whereas modules are useful when reusing common functionality across multiple classes.
| Is This Answer Correct ? | 0 Yes | 0 No |
What is support, env.rb and hooks.rb?
What are cucumber tags? Why we use the tags?
What software do you need to run a cucumber web test?
What is step definition in cucumber?
Cucumber is written in which programming language?
What are before, after, beforestep and afterstep hooks?
What are steps in cucumber?
What are the difference between jbehave and cucumber?
What does a features/ support file contains?
What is profile in cucumber?
What are hooks in cucumber?
Cucumber tests are divided into how many parts?