Magento 2 : How to Override Model

Configuration of Module: Create module.xml in app/code/Techievolve/Product/etc and add the following code to it: Module Registration: Create registration.php in app/code/Techievolve/Product and add the following code to it: Override Product.php Run the following commands using ssh or terminal: