What is the difference between calling super and calling super()?
Answer Posted / Mnaoj Kumar Viyas
In Ruby, calling super invokes the parent method with the same number of arguments as passed to the current method. Calling super() invokes the parent class's implementation of the current method, regardless of the number of arguments.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers