Q. In Ruby, what is encapsulation?

  • (A) Hiding data within a class
  • (B) Inheriting properties and behaviors
  • (C) Binding data with methods that operate on that data
  • (D) Converting data types
πŸ’¬ Discuss
βœ… Correct Answer: (C) Binding data with methods that operate on that data

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

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