However, what is the real difference between the two? For instance, Is there a difference in member initialization? Child objects and other members are always instantiated automatically; the keyword NEW doesn't work on them, as far as I can tell.
I would like to be consistent in my approach, so if child objects cannot be instantiated explicitly, I would like to do the same for parent objects:
Code: Select all
dim Parent as TParent()
Code: Select all
dim Parent as TParent ptr = new TParent()
...
delete Parent
Code: Select all
Parent->Child.myname