Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


Tell me what is the difference between calling super() and super call?



Tell me what is the difference between calling super() and super call?..

Answer / Rishitosh Tyagi

{"super": "The `super` keyword in Ruby calls the parent class’s implementation of the current method. It can be used within a subclass to invoke the parent’s method.","super_call": "`super` is often referred to as invoking a super call, but it's not an actual function or method named `super_call`. If you need to invoke a super class’s constructor, use `super()` or `super class_method_name` instead."

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Ruby Interview Questions

Do you know when self.up and self.down method is used?

1 Answers  


What are the loops in ruby?

1 Answers  


Explain how Symbol is different from variables?

1 Answers  


In how many ways items can be removed from array in Ruby?

1 Answers  


In Ruby code, often it is observed that coder uses a short hand form of using an expression like array.map(&:method_name) instead of array.map { |element| element.method_name }. How this trick actually works?

1 Answers  


Please explain the three levels of access control for ruby methods?

1 Answers  


Explain next statement in ruby.

1 Answers  


Do you know how ruby looks up a method to invoke?

1 Answers  


What is Ruby programming language?

1 Answers  


Write the command to get installed Ruby version in your system?

1 Answers  


Describe the environment variables present in Ruby?

1 Answers  


What is mvc and why do we use it?

1 Answers  


Categories