The Strawberry class is inherited from the Fruit class. This means that the Strawberry class can use the public $name and $color properties as well as the public __construct() and intro() methods from the Fruit class because of inheritance. The Strawberry class also has its own method: message().

Am I a fruit or a berry? The fruit is Strawberry and the color is red.