πŸ“Š PHP
Q. Which magic method is called automatically when an object is created?
  • (A) __start()
  • (B) __init()
  • (C) __construct()
  • (D) __new()
πŸ’¬ Discuss
βœ… Correct Answer: (C) __construct()

Explanation: __construct() is the constructor method in PHP.

Explanation by: Rati Dubey
__construct() is the constructor method in PHP.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
55
Total Visits
πŸ“½οΈ
9 mo ago
Published
πŸŽ–οΈ
Rati Dubey
Publisher
πŸ“ˆ
97%
Success Rate