Start networking and exchanging professional insights

Register now or log in to join your professional community.

Follow

What are the differences between instance variable ( @variable ) and class variable ( @@variable ) on ruby ?

user-image
Question added by Adel Ezat Fawzy Ellozy , Webdeveloper. , Saudi Arabian Maritiem Sports Federation
Date Posted: 2017/03/25
Umair Khan
by Umair Khan , Web Developer , Innovative Designers

Instance variables are not shared with subclasses. They belong exclusively to the class itself.

More Questions Like This

Do you need help in adding the right keywords to your CV? Let our CV writing experts help you.