<html>
<body>
class Fruit {
final public function intro() {
}
}
class Strawberry extends Fruit {
// will result in error
public function intro() {
}
}
</body>
<!-- /php/phptryit.asp?filename=tryphp_inheritance6 Thu, 06 Feb 2025 19:26:35 GMT -->
</html>