Each time I go to declare an extended class,
Class cookies extends Food{
public function __construct()
{
parent::__construct();
}
}
Why am I using parent::__construct()
?
Is this for inheritance? Does merely extending the class not inherit it's properties?