Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- class ParentClass{
- public function show($value){
- echo "Parent show({$value}) <br>";
- }
- }
- class ChildClass{
- public function show($value){
- echo "Child show({$value}) <br>";
- }
- }
- $parent = new ParentClass();
- $parent->show(100);
- $child = new ChildClass();
- $child->show(50);
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement