Q. What is encapsulation in object-oriented programming (OOP)?

  • (A) Binding data and methods together
  • (B) Inheriting from multiple classes
  • (C) Exposing internal implementation details
  • (D) Restricting access to public methods
πŸ’¬ Discuss
βœ… Correct Answer: (A) Binding data and methods together

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

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