adspace
Answer Posted / 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 |
Post New Answer View All Answers
No New Questions to Answer in this Category !! You can
Post New Questions
Answer Questions in Different Category