Tell me what is the difference between calling super() and super call?
Answer Posted / Rishitosh Tyagi
{"super": "The `super` keyword in Ruby calls the parent class’s implementation of the current method. It can be used within a subclass to invoke the parent’s method.","super_call": "`super` is often referred to as invoking a super call, but it's not an actual function or method named `super_call`. If you need to invoke a super class’s constructor, use `super()` or `super class_method_name` instead."
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers