Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Class Hierarchy

The class hierarchy is a list of classes, which are extending one from another. The extended classes are parents, and the extending classes are children. Classes extending the same class are also called siblings.

The depth of the class hierarchy is a measure of the complexity.

<?php

    class Elephpant {}

    class AfricanElephpant extends Elephpant {}

    class Calf extends AfricanElephpant {}

    class PlayfulCalf extends Calf {}
    class ShyCalf extends Calf {}

?>

Documentation

See Also