Tell me what is the difference between calling super and calling super()?
Answer Posted / Abhaya Kumar Singh
"In Ruby, when you call 'super', it calls the method from the immediate parent class. When you call 'super()', it calls the method of the exact same name from the immediate parent class's superclass (which is Object by default)."
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers