PDA

View Full Version : Variable or method


rubick
January 10th, 2008, 01:58 PM
I'm novice, so don't smile at question.
Tell me please how can I distinguish either i refer to method or to variable?
Suppose I have method and object variable called age and this method can return the value of variable age. Does puts.age point to method or to variable?

rubick
January 11th, 2008, 05:56 AM
I'm sorry. Of course I wanted to write puts someobject.age