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...


Explain the types of variables available in ruby class?



Explain the types of variables available in ruby class?..

Answer / Nitesh Agrawal

Ruby classes have four types of instance variables: @variable (instance variables), @@variable (class variables), @variables (singleton class variables), and local variables. Instance variables are unique to each object, class variables are shared among all instances of a class, singleton class variables are unique to the class itself, and local variables exist only within their method or block.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Ruby Interview Questions

Explain about the defined operator in ruby?

1 Answers  


What is yield in ruby?

1 Answers  


Explain ampersand parameter (&block) in Ruby?

1 Answers  


Overview of ruby programming language?

1 Answers  


Tell me what are blocks and procs?

1 Answers  


Explain about class libraries in ruby?

1 Answers  


How does ruby deal with extremely large numbers?

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  


What method might you use to remove duplicate values from an array?

1 Answers  


Describe class libraries in Ruby?

1 Answers  


What are class libraries in Ruby?

1 Answers  


Explain the role of thread pooling in relation to the thread lifecycle in ruby?

1 Answers  


Categories