πŸ“Š PHP
Q. Which keyword is used to call the parent class constructor?
  • (A) base::__construct()
  • (B) super::__construct()
  • (C) this::__construct()
  • (D) parent::__construct()
πŸ’¬ Discuss
βœ… Correct Answer: (D) parent::__construct()

Explanation: parent::__construct() is used to call the parent class constructor.

Explanation by: Rati Dubey
parent::__construct() is used to call the parent class constructor.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
19
Total Visits
πŸ“½οΈ
3 mo ago
Published
πŸŽ–οΈ
Rati Dubey
Publisher
πŸ“ˆ
82%
Success Rate