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



Explain ruby class...

Answer / Shashi Prakash Verma

"A Ruby class is a blueprint for creating objects. It defines the properties (attributes or instance variables) and methods that those objects will have. Classes are defined using the 'class' keyword followed by the name of the class. For example:

class MyClass
# define properties and methods here
end
""

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Ruby Interview Questions

What is the difference between #== and #eql??

1 Answers  


Can you call a private method outside a ruby class using its object?

1 Answers  


Explain when self.up and self.down method is used?

1 Answers  


What is the difference between a class and a module?

1 Answers  


Is ruby supports single inheritance/ multiple inheritance or both?

1 Answers  


Tell me an array [1,2,34,5,6,7,8,9], product it using a method?

1 Answers  


what is the Notation used for denoting class variables in Ruby?

1 Answers  


Explain class libraries in ruby.

1 Answers  


what is the difference between String and Symbol?

1 Answers  


How do you remove nil values in array using ruby?

1 Answers  


Tell us the types of variables available in ruby class?

1 Answers  


Explain retry statement in ruby.

1 Answers  


Categories