PHP 8.5.0 Beta 2 available for testing

Voting

: six plus three?
(Example: nine)

The Note You're Voting On

slorenzo at clug dot org dot ve
17 years ago
<?php
class parentClass {
public function
someMethod() { }
}
class
childClass extends parentClass {
public final function
someMethod() { } //override parent function
}

$class = new childClass;
$class->someMethod(); //call the override function in chield class
?>

<< Back to user notes page

AltStyle によって変換されたページ (->オリジナル) /