Q. Which method is automatically called when an object is created?

  • (A) __construct()
  • (B) __create()
  • (C) init()
  • (D) start()
πŸ’¬ Discuss
βœ… Correct Answer: (A) __construct()
Explanation: The constructor method __construct() is called automatically when an object is created.
Explanation by: Mr. Dubey
The constructor method __construct() is called automatically when an object is created.

πŸ’¬ Discussion


πŸ“Š Question Analytics

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