| To: | REALbasic NUG <realbasic-nug at lists dot realsoftware dot com> |
|---|---|
| Subject: | Re: OOP friend |
| From: | Norman Palardy <npalardy at great-white-software dot com> |
| Date: | Sun, 30 Oct 2005 23:41:40 -0700 |
| Delivered-to: | realbasic-nug at lists dot realsoftware dot com |
| References: | <20051030181811 dot 58969 dot qmail at web31802 dot mail dot mud dot yahoo dot com><43653509 dot 6010002 at ryandary dot com> <e85bf11b7d71f7112b18ee6e61860a10 at satx dot rr dot com> <001301c5ddca$2b6181f0$3f64a8c0 at KEITHXP> <4365B669 dot 20400 at ryandary dot com> |
On Oct 30, 2005, at 11:15 PM, Ryan Dary wrote: You can do that with interfaces. - Ryan Dary No you can'tWhat you're trying to get to is the "THIS class can use these API methods because he's a friend, but this other class cannot" and it's up to the class that IMPLEMENTS the methods to say who is and is not his friend. With an interfaces if the class implements it ANY other class can access it via the interface and the class implementing the interface cannot change that. _______________________________________________ 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> |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: OOP, Will Leshner |
|---|---|
| Next by Date: | Re: ContextMenu Submenus ?, Will Leshner |
| Previous by Thread: | Re: OOP friend, Ryan Dary |
| Next by Thread: | Re: OOP friend, Norman Palardy |
| Indexes: | [Date] [Thread] [Top] [All Lists] |