class Person {
// Other properties and methods not shown here
final public function getFirstName() {
return $this->firstName;
}
}
class Employee extends Person {
// Other properties and methods not shown here
// This method attempts to override a final method - fatal error
public function getFirstName() {
return ucwords($this->firstName);
}
}
final class Employee extends Person {
// Properties and methods for class
}
class PartTime extends Employee {
// Properties and methods for class
}