I am currently creating a preference module to add additional functionality to \Magento\Catalog\Model\Product and in reviewing some of the tutorials, example below, I noted that dependencies weren't being passed to the parent constructor.
Is this just a careless omission or do the dependencies only needed to be passed to the parent constructor in certain circumstances?
<?php
namespace MyModule\ProductPreference\Model;
class Product extends \Magento\Catalog\Model\Product
{
public function getName()
{
return "New Nameo";
}
}