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 |
Can you call a private method outside a ruby class using its object?
How is object methods defined in ruby?
How can you removed from array in ruby?
What is RubyGems in Ruby programming language?
Explain Ruby exceptions?
In how many ways a block is written in Ruby?
Ruby support single inheritance/multiple inheritance or both?
What is the difference between static and dynamic scaffolding?
How would you freeze an object in ruby?
what is class libraries in Ruby?
What happens when a value is too big for fixnum?
What are the key features of ruby?