What is the difference between a class and a module?
Answer / Dharmendra Yadav
In Ruby, both classes and modules are namespaces for organizing code. However, a class is used to define a new data type or object-oriented behavior, whereas a module encapsulates reusable functionality (methods and constants) that can be mixed into existing classes using the `include` or `extend` keywords.
| Is This Answer Correct ? | 0 Yes | 0 No |
Explain about variables?
What is the difference between a statement and an expression in ruby?
What is ruby software and where and when it is usefull.
What are the object-oriented programming features supported by ruby?
Explain about portability?
Explain when self.up and self.down method is used?
What's the difference in scope for these two variables: @name and @@name?
What is mvc and why do we use it?
Is ruby a strongly typed or a weakly typed language?
what is Interpolation in Ruby?
Interpolation is a very important process in Ruby, comment.
Explain each of the following operators and how and when they should be used: ==, ===, eql?, Equal?