On Apr 11, 2006, at 9:19 PM, Charles Ross wrote:

If a class and a subclass of the class both have Constructor methods, what is the proper way to call the superclass' Constructor from the subclass' Constructor method?

Thanks,
Chuck

There are two :

        Super.Constructor

or
        Super.NameOfSuperClass

both will work

However, personally I prefer Constructor since this does NOT require the subclass to "know" the super class name and if you happen to need to insert a new super in the hierarchy things will still work.

But there are some built in classes that use the older "name of class" style
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to