Refer to the small php script given below:
<?php
class person{
function getSal()
{
. . .
. . .
}
}
class emp extends person{
function getSal()
{
???
}
}
?>
The getSal() of emp has to behave exactly as getSal() of person. Which of the following lines of code would you use to replace the '???'
Correct Answer: parent::getSal();
Explanation:
Note: This Question is unanswered, help us to find answer for this one
More LAMP MCQ Questions