MCQs>IT & Programming>PHP>What's the output? class angryBob{ public function angryBob(){ $this->apple = 'Taken away by Bob' } } class sillyBill extends angryBob{ var $apple; public function sillyBill() { $this->apple = 'Eaten by Bill' parent::angryBob(); } } $Bill = new sillyBill; echo $Bill->apple;
PHP MCQs
What is the output of the following code? class angryBob{ public function angryBob(){ $this->apple = "Taken away by Bob"; } } class sillyBill extends angryBob{ var $apple; public function sillyBill() { $this->apple = "Eaten by Bill"; parent::angryBob(); } } $Bill = new sillyBill; echo $Bill->apple;
Answer
Correct Answer: Taken away by Bob
Explanation:
Note: This Question is unanswered, help us to find answer for this one