Have you remembered to refresh your libraries for the changes to take effect?
For some reason I am not seeing the same as you?
I managed to achieve this by following the advise from
@LucaMs in his earlier posting
create a child sub into parent sab
If you look in the XML file for the created library you will see that I have removed the initialize method and under ClassB I have given an empty string for the shortname.