If I have classes A, B, C, D, E
, and interfaces like X, Y, Z
, and model a system like:
class B : A, X
class C : B, Y
class D : C, Z
class E : D
If A
is an abstract base class and E is the class of interest, when I create an instance of E, would it in turn create instances of A, B, C, D, X, Y, Z
in addition to E
?
If that's the case, would this create a huge performance overhead? Not memory, but runtime and GC wise.