A Admin • 831.35K Points Coach Q. What is the main purpose of a constructor in a Ruby class? (A) To define getter and setter methods (B) To create new instances of the class (C) To define class methods (D) To initialize instance variables Correct Answer - Option(D) Views: 9 Filed under category Ruby Hashtags: Share Manage Tags
Discusssion
Login to discuss.