adspace
How is calling super() different from the super call?
Answer Posted / Sulabh Dhawan
In Ruby, `super` refers to invoking the parent class method with the same arguments provided. The difference between `super` and a `super` call is that `super` calls the immediate superclass, while a `super` call can be chained to call methods from multiple levels of inheritance using parentheses. For example: `super()` calls the immediate superclass, `super(arg1, arg2)` calls the superclass with two arguments.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers