home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.next.programmer
- Path: sparky!uunet!uunet.ca!digifix!sanguish
- From: sanguish@digifix.com (Scott Anguish)
- Subject: Re: Accessing the values of variables in other objects?
- Message-ID: <1992Jul22.002121.809@digifix!uunet.ca>
- Sender: sanguish@digifix!uunet.ca
- Reply-To: sanguish@digifix.com
- Organization: Digital Fix Development
- References: <1992Jul21.234421.8444@u.washington.edu>
- Date: Wed, 22 Jul 1992 00:21:21 GMT
- Lines: 16
-
- Lloyd P. Goldwasser writes
- > Here's a simple Objective-C question with, I suspect, a simple yes-or-no
- > answer.
- >
- > Is it possible to access directly the values of variables in other objects?
-
- The best way is to do it with the method returns value style.
-
- Otherwise, you aren't really working in a very Object Oriented way,
- plus you don't get the benefit of being able to change the variable type,
- without having to change anything in the objects that actually use it.
-
- --
- - Scott Anguish -
- sanguish@digifix.com (NextMail)
-
-