πŸ“Š Ruby
Q. What is the purpose of inheritance in Ruby?
  • (A) To allow a class to inherit properties and behaviors from another class
  • (B) To allow multiple classes to inherit from each other
  • (C) To restrict access to certain methods
  • (D) To define private methods
πŸ’¬ Discuss
βœ… Correct Answer: (A) To allow a class to inherit properties and behaviors from another class

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
96
Total Visits
πŸ“½οΈ
2 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
80%
Success Rate