Can I create a subclass which parent is dynamic? For example; on class A extends B code, can I change B according to a condition? If can I return it from a method what will be the method’s return type? I mean class A extends getClassAccToCondition() return type.
Can I create a subclass which parent is dynamic? For example; on class A
Share
I decide to use a way like a variation of simple polymorphism with Factory pattern. It will work for me i think. Thanks for answers.