<html>
<head>
<title></title>
</head>
<body>
<p>
<?php
class Person {
public function say() {
echo "Here are my thoughts!";
}
public static function say() {
Blogger::say();
}
}
class Blogger extends Person {
const cats=50;
}
echo Blogger::cats;
?>
</p>
</body>
</html>
whats wrong here :3
Fatal error: Cannot redeclare Person::say() on line 12
and please don't judge lol
<head>
<title></title>
</head>
<body>
<p>
<?php
class Person {
public function say() {
echo "Here are my thoughts!";
}
public static function say() {
Blogger::say();
}
}
class Blogger extends Person {
const cats=50;
}
echo Blogger::cats;
?>
</p>
</body>
</html>
whats wrong here :3
Fatal error: Cannot redeclare Person::say() on line 12
and please don't judge lol
Last edited:
