can I adding a prototype from a different file?

Hey guys I wanted to know! 

example I have two plugins who use example the function interpt...

let's explain by example

my first plugin is the interpt

// file or plugin Afunction interpt() {//blabla...}this one is in a specific plugin!

but now I go and do a another plugin but I need to add a new protype without edit the first plugin or files ect...

can I do this :

// file or plugin B so different files!function foo() {// blabla2...}Interpt.prototype.new_method = function(arguments) {// stufffffffffff...};it's possible to do that or this TOTALLY impossible? and I need to recal the functions?

thanks for any answer I was worried if example I create a function in a specific files I have to redo the functions because it's inacessible 🙂
That should be possible, I think. Jets you do that sort of thing.
Yes. It would not be much different from what you'd do in ruby.
I see thanks guys for your answer 😀

Original thread: https://forums.rpgmakerweb.com/threads/can-i-adding-a-prototype-from-a-different-file.45665/