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

How to read a file in Ruby?

1 Answers  


What is ruby methods?

1 Answers  


Explain Ruby module?

1 Answers  


Tell us how would you implement hash in ruby internally?

1 Answers  


mention what is the difference between a single quote and double quote?

1 Answers  


Explain Ruby hashes?

1 Answers  


What are the looping structures available in ruby?

1 Answers  


In how many ways you can compare Ruby string?

1 Answers  


What is the use of global variable $ in Ruby?

1 Answers  


Explain raise statement in Ruby?

1 Answers  


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

1 Answers  


what is the difference between put and putc statement?

1 Answers  


Categories