home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!ukma!wupost!sdd.hp.com!decwrl!bu.edu!nntp-read!mas
- From: mas@csa.bu.edu (Mark A. Semich)
- Newsgroups: comp.lang.objective-c
- Subject: instance variable declarations..
- Message-ID: <MAS.92Aug30121306@csa.bu.edu>
- Date: 30 Aug 92 16:13:06 GMT
- Sender: news@bu.edu
- Organization: The Internet
- Lines: 19
-
-
- I'm just starting working w/ Obj-C, so I've got a beginner's question:
-
- Why is it that instance variables are declared in an object's
- @interface portion (interface file) while an object's method's are in
- the @implementation portion (implementation file)?
-
- I had kind of pictured the interface file as akin to a prototypes
- file, while the implementation file contained the actual code. Since
- instance variables are private data, it seems to me that they should
- be declared in the implementation file (along with the methods) rather
- than the interface file.
-
- --
- ===========================================================================
- "I used to be a design but now I'm a tree."
- -- - - - - - - - - - - - - - - - - - --
- mark a. semich mas@csa.bu.edu
- ===========================================================================
-