On Oct 30, 2005, at 3:03 PM, Ryan Dary wrote:
How does the Public/Protected/Private not do that for you now? In
RB2005, you can choose from the following for every declared method of
a class:
Public - Accessible anywhere (inside or outside the class)
Protected - Accessible anywhere within the class or the subclasses.
Private - Accessible only by the class which declares it.
Would this be sufficient or are you needing something else? Perhaps I
misunderstood the question..
Cheers,
Ryan Dary
I think he meant, "how can you make a class expose public methods,
but only to another - specified, and different* - class?"
* By "differnt", I mean that the 'other' (different) class is neither a
subclass nor a superclass of the original class (the one he wanted the
methods exposed on).
Bob Gordon wrote:
Hello.
I've been working on (mainly playing around) with a
couple of things, and I'd like to run something by the
group:
Many times I need a class to have some public methods,
but I want them only visible to some other class that
will be the only user of this class. This other class
would have public methods/properties so it can be used
in a program.
For example, let's say I am making a help system.
There might be one or two methods a program would use
to open the help window and locate the desired topic.
But, inside the help system, there might be some sort
of help item. This would have its own public methods.
I would like to be able to hide such methods such that
they are visible inside the subsystem (component?) but
not visible outside.
Such a concept would simplify documentation and usage
for such subsystems. Is this something RB should have?
Is there a way to do it now?
-Bob Gordon
Coming Soon
The Book of Fictional Days 2006
A Strictly Limited Edition
For Information email gordon1bob at yahoo dot com
_______________________________________________
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>
_______________________________________________
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>
William H Squires Jr
4400 Horizon Hill #4006
San Antonio, TX 78229
wsquires at satx dot rr dot com dot nospam <- remove the .nospam
_______________________________________________
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>
|