Ruby - Operators and Expressions
Which of the following is the correct way to define the
+ operator method in a Ruby class?+ operator method in a Ruby class?+ are defined by naming the method exactly as the operator symbol.+, you write def +(other), not other names like plus or add.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions