Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Parents {
- function Test(){
- echo "Parent class<br>";
- }
- }
- class Child extends Parents {
- function TestChild(){
- echo 'function Child class';
- }
- }
- $obj = new Parents();
- $obj = new Child();
- $obj->Test();
- $obj->TestChild();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement