Find the heir.

TodNaz hello.humanaz at gmail.com
Sun Mar 29 14:04:53 UTC 2020


Hello!
>class A
>{
>    ...
>}
>
>class B : A
>{
>    ...
>}
>
>class C : A
>{
>    ...
>}
>
>A example1;
>B example2 = new B(...);
>A = example2;
>auto heir = A.whoheir(); ///

The question in this code is: is it possible to track the class 
inheritor? Or is it beyond D?
Sorry if the question is fool ...



More information about the Digitalmars-d-learn mailing list