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

πŸ‘οΈ
58
Total Visits
πŸ“½οΈ
10 mo ago
Published
πŸŽ–οΈ
Rati Dubey
Publisher
πŸ“ˆ
91%
Success Rate