logo

New Response

« Return to the blog entry

You are replying to:

    • avatar
    • harkpabst_meliantrop
    • Posted on Thu 11 Jul 2013 09:11 AM

    Finally found the time to dig a little into your code. Right now more to learn for my own coding rather than re-using your classes, I must admit.

    What puzzled me at first was the syntax you use for the constructors of your derived classes. E.g., the CustomerCollection class has this constructor sub:

    Sub New(docs As Variant), DocumentCollection(docs)

    End Sub

    I wasn't even aware of the fact, that you can actually pass a separate argument to the super class. Next I was wondering, why you wrote it like that at all.

    If I get Designer help right, the reference to the base class is only required, if the base class has a different list of arguments OR if you explicitly want to pass a different argument to the base class constructor. Otherwise the same argument passed to the sub-class constructor would be fed to the base class constructor at run time.

    Am I missing something? Or is it rather a matter of your personal taste?

Your Comments

Name:
E-mail:
(optional)
Website:
(optional)
Comment: