Inheritance example in PHP