firstName = 'Vusi'; $this->lastName = 'Buthelezi'; return $this->firstName . ' ' . $this->lastName . ' is an academic with staff number ' . $this->staffNumber . '. He is in office ' . $this->officeNumber . '.'; } } $person = new academic(); echo '
1.' . $person->write_information() . '
'; //////////////////////////// Task 9 (2) ///////////////////////////////////////////////////// class student extends person { public $studentNumber = '44993072', $courseName = 'ICT3612 - Advanced Internet Programming' ; public function __construct(){ } //concrete implementation of person abstract method public function write_information(){ $this->firstName = 'Richard'; $this->lastName = 'Roodman'; return $this->firstName . ' ' . $this->lastName . ' with Student Number ' . $this->studentNumber . ' is enjoying his subject ' . $this->courseName . '.'; } }