Q. What is the primary 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 ποΈ Show Answer π¬ Discuss π Share β‘Menu β Correct Answer: (D) To initialize instance variables