For example:
I have pop-up window that is released by clicking the button, and I want to create similar window with different button, but each time I want to make changes - the original one is changing too.
I would recommend you take a look at this university article / lesson on how to use classes.