printf("New salary is %d dollars\n", $this->sal);
    }
    function __destruct()
    {
        printf("Good bye, cruel world: EMPLOYEE:%s\n", $this->ename);
    }
}
class manager extends employee
{
    protected $dept;
    function __construct($ename, $sal, $dept)
    {
        parent::__construct($ename, $sal);
        $this->dept = $dept;
    }
    function give_raise($amount)
    {
        parent::give_raise($amount);
        print "This employee is a manager\n";
    }
    function __destruct()
    {
        printf("Good bye, cruel world: MANAGER:%s\n", $this->ename);
        parent::__destruct();
    }
}
// Class definition ends here.
$x = new manager("Smith", 300, 20);
$x->give_raise(50);
$y = new employee("Johnson", 100);
$y->give_raise(50);