1<?php
2class A {
3 // more code here
4}
5
6class B extends A {
7 // more code here
8}
9
10class C extends B {
11 // more code here
12}
13
14
15$someObj = new A(); // no problems
16$someOtherObj = new B(); // no problems
17$lastObj = new C(); // still no problems
18
19?>
20
21