Change a Class without changing it’s code?

Not sure if this is what you want, but you can create you own class class myClass extends importedClass {} and create your custom functions.