Answer Posted / Surabhi Saxena
In Ruby, class methods are defined using the 'def' keyword followed by the name of the method prefixed with self or the class name. They are called by specifying the class name and dot notation for the method.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers