realbasic-nug
[Top] [All Lists]

calling subclasses method from super class

To: REALbasic NUG <realbasic-nug at lists dot realsoftware dot com>
Subject: calling subclasses method from super class
From: Tom Iwaniec <tom at oranged dot net>
Date: Wed, 30 Jun 2004 16:52:04 -0500
Delivered-to: realbasic-nug at lists dot realsoftware dot com
List-help: <mailto:realbasic-nug-request@lists.realsoftware.com?subject=help>
List-id: REALbasic NUG <realbasic-nug.lists.realsoftware.com>
List-post: <mailto:realbasic-nug@lists.realsoftware.com>
I have a class (networkableclass) with a method (todictionary) that is blank in the networkableclass, but has all of the code specific for each sub class in the subclass's implementation of the method. The method returns a dictionary.

I want to add code to the superclass (networkableclass) todictionary method that will apply to all of the subclasses, however, It would be adding values to the dictionary returned from the subclass's todictionary method.

Is there any way for the super class's todictionary to call the subclass's todictionary to get the value returned by it, and then add to that dictionary and return it as the final dictionary?

thanks,
Tom

_______________________________________________
Unsubscribe or switch delivery mode:
<http://support.realsoftware.com/listmanager/>

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

<Prev in Thread] Current Thread [Next in Thread>