What is the difference between calling super and calling super()?
Answer / 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 |
Tell me how you define instance variable, global variable and class variable in ruby?
what is the difference between a single quote and double quote?
What is Ruby programming language?
What does mri most commonly stand for?
What is retry statement in ruby?
What is sysread method in Ruby?
What is the pattern matching operator in ruby?
How symbol is different from variables?
Explain redo statement in Ruby?
Explain about Float, Dig and Max?
What are blocks and procs?
What are the different uses of ruby modules?