How to make modification in a premium plugin

How to make modification in a premium plugin , and my work not lost with any further upgrades ?

there are any methods like inheritance or something like parent & child theme ,...etc

Thanks ,