Prepare Interview

Exams Attended

Mock Exams

Make Homepage

Bookmark this page

Subscribe Email Address

Ruby On Rails Interview Questions and Answers

Ques. Describe the difference between class and instance variables?
Ans.
  • Class variables are created with the prefix @@ and are shared by all objects in a class.

  • Instance variables are created with the prefix @ and belong to a single object within a class.

Is it helpful? Yes No

Most helpful rated by users:

©2021 WithoutBook