Q. What is true about encapsulation?

  • (A) It hides the implementation details of an object
  • (B) It prevents object creation
  • (C) It is not possible in Python
  • (D) It refers to code reuse
πŸ’¬ Discuss
βœ… Correct Answer: (A) It hides the implementation details of an object
Explanation: Encapsulation protects object integrity by hiding internal data and requiring access through methods.
Explanation by: Mr. Dubey
Encapsulation protects object integrity by hiding internal data and requiring access through methods.

πŸ’¬ Discussion


πŸ“Š Question Analytics

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