<?php abstract class Animal { function greeting() { $sound = $this->sound(); return strtoupper($sound); } function sound(); } class Dog extends Animal { function sound() { return "Woof!"; } } $dog = new Dog(); echo $dog->greeting(); ?>
Correct Answer: Fatal error
Explanation:
Note: This Question is unanswered, help us to find answer for this one
More PHP MCQ Questions