Q. Which magic method is called when cloning an object?

  • (A) __clone()
  • (B) __copy()
  • (C) __duplicate()
  • (D) __new()
πŸ’¬ Discuss
βœ… Correct Answer: (A) __clone()
Explanation: __clone() is triggered during object cloning.
Explanation by: Yami Thakur
__clone() is triggered during object cloning.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
52
Total Visits
πŸ“½οΈ
8 mo ago
Published
πŸŽ–οΈ
Yami Thakur
Publisher
πŸ“ˆ
83%
Success Rate