How is calling super() different from the super call?



How is calling super() different from the super call?..

Answer / Sulabh Dhawan

In Ruby, `super` refers to invoking the parent class method with the same arguments provided. The difference between `super` and a `super` call is that `super` calls the immediate superclass, while a `super` call can be chained to call methods from multiple levels of inheritance using parentheses. For example: `super()` calls the immediate superclass, `super(arg1, arg2)` calls the superclass with two arguments.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Ruby on Rails Interview Questions

Explain what are the servers supported by ruby on rails?

1 Answers  


Can you explain me how rails implements ajax?

1 Answers  


Whats the difference between symbol and string?

2 Answers  


who developed rails?

1 Answers  


How are the key differences between python and ruby?

1 Answers  


What is the difference between false and nil in ruby?

1 Answers  


Please explain what are the positive aspects of rails?

1 Answers  


What are the servers supported by ruby on rails?

1 Answers  


how you define Instance Variable, Global Variable and Class Variable in Ruby?

1 Answers  


how you can run Rails application without creating databases?

1 Answers  


How is the model view controller framework used in ruby on rails?

1 Answers  


Is it possible to build a 50% bespoke e-commerce platform hence having the ability to customize everything down the line? For example would it make sense to start coding an application on the Ruby on Rails framework but where the most complex/time consuming code pieces (e.g. shopping cart, etc) can be initially bolted on (hence diminishing development time and cost) having the ability to change them completely further down the line?

1 Answers  


Categories