Last active
October 19, 2022 13:42
-
-
Save ilyasozkurt/c91021c01e88365815afc320591c3822 to your computer and use it in GitHub Desktop.
test.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class Home { | |
protected function test() { | |
echo "Home::test() called\n"; | |
} | |
final public function kitchen() { | |
echo "Home::kitchen() called\n"; | |
} | |
} | |
class Room extends Home { | |
public function kitchen() { | |
echo "Room ::kitchen() called\n"; | |
} | |
} | |
//Can this work? | |
$r = new Room(); | |
$r->test(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment