Q. What is encapsulation in Ruby classes?

  • (A) The bundling of data with the methods that operate on that data
  • (B) The hiding of data within a class
  • (C) The inheritance of properties and behaviors
  • (D) The conversion of data types
πŸ’¬ Discuss
βœ… Correct Answer: (A) The bundling of data with the methods that operate on that data

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

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