Link to home
Start Free TrialLog in
Avatar of unistudent
unistudent

asked on

Ruby OO Design - General Knowledge

Hi,
First this is not an assignment. Just a general knowledge.

I have previously raised a question about Java OO Design. As I have been self learning Ruby on Rails. In Ruby programming, I cannot find any good book talking about OO design in Ruby programming. However, it seems to be a common question for Ruby OO Design.

I am wondering any Ruby Experts here can help me to understand what is OO Design in Ruby programming.. I can't find any abstract class or interface used in Ruby programming. I am very sure I am wrong and need you experts to help me understand.


Thank you in advance.
ASKER CERTIFIED SOLUTION
Avatar of Rameshwar Vyevhare
Rameshwar Vyevhare
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of unistudent
unistudent

ASKER

many thanks for the info. this is very useful even though i dont quite understand. I think this is part of my learning curve.

I dont see any concept like Java interface, abstraction and inheritance.. anywhere i can find the information regarding ruby interface, abstraction and inheritance....

Does Ruby support multiple inheeritance? I have read some book, some say it doesn't, but to support mulitple inheritance, it needs to use mixins ...

I learn ruby from Rails.. i should do it in a proper way.. i found Ruby is hard to understand. For example, I have no idea what data type of the model method return till i have looked at the code.. not like java.. correct me if i am wrong.
Ruby is purely object oriented, when you make call  to model for data then you will get data in the form of hash object. You can manipulate with object and can convert it to to_s(string), to_i(integer) and to_arr(array). Make some practice with small application using rails. and also go through some example on interactive ruby (console).

Here practice more important than reading, practice will increase your confidence.

Best Luck