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

A call to super() initiates the parent method without any disputes.

A call to super initiates the parent method with the same disputes that were passed to the child. An error will occur if the arguments passed to the child do not match with the parent method.

Suggest An Answer

No suggestions avaliable!

Latest post from Ruby on rails interview questions

Ask Question