I have the class
public class Conhecimento{}
This class extends from another class "CteProc"
Only this CteProc class has "versions" example.
v200.CteProc
v300.CteProc
My problem is that in creating the Knowledge class I need to tell you if it will extend from CteProc 200 or CteProc 300 according to the version I receive. I wanted to know if it's possible to do this, change the extends or leave dynamic.