Category Archives: Code Snippet

Deep Clone From Super Class

Ever had to create an object from another object being super class of the first one? You could just copy each attribute from one to another but that’s pretty annoying if there’s a lot of attributes. I stumbled upon a generic way and like to share it.