|
|
Sample Programs from NeXSTEP 3.3
/*--------------------------------------------------------------------------
*
* You may freely copy, distribute, and reuse the code in this example.
* SHL Systemhouse disclaims any warranty of any kind, expressed or
* implied, as to its fitness for any particular use.
*
*
* Motorcycle
*
* Inherits From: NSObject
*
* Conforms To: None
*
* Declared In: Motorcycle.h
*
* Class Description
*
* A simple class describing a motorcycle object.
*
*
*------------------------------------------------------------------------*/
#import <foundation/NSObject.h>
@interface Motorcycle : NSObject
{
id make;
id model;
id price;
id picture;
}
/*--------------------------------------------------------------------------
* Accessors
*------------------------------------------------------------------------*/
- make;
- model;
- price;
- picture;
- (void) setMake: aString;
- (void) setModel: aString;
- (void) setPrice: aString;
- (void) setPicture: aString;
@end
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.