magento2.4.1 – What is the procedure to override core files

I am added one line in my core files, i want to add into my custom module,

Core file :magentovendormagentomodule-wishlistCustomerDataWishlist.php

My module :

appcodeZeroWishlistBrandetcdi.xml

<?xml version="1.0" ?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
    <type name="MagentoWishlistCustomerDataWishlist">
        <plugin disabled="false" name="Zero_WishlistBrand_Plugin_Magento_Wishlist_CustomerData_Wishlist" sortOrder="10" type="ZeroWishlistBrandPluginMagentoWishlistCustomerDataWishlist"/>
    </type>
</config>

appcodeZeroWishlistBrandetcmodule.xml

<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd">
    <module name="Zero_WishlistBrand" setup_version="1.0.0">
    </module>
</config>

appcodeZeroWishlistBrandregistration.php

<?php
MagentoFrameworkComponentComponentRegistrar::register(
    MagentoFrameworkComponentComponentRegistrar::MODULE,
    'Zero_WishlistBrand',
    __DIR__
);

appcodeZeroWishlistBrandPluginMagentoWishlistCustomerDataWishlist.php

      --   How to edit my core files --

Code: https://codeshare.io/2KzxgP line number : 142

How to override into my custom module?