home *** CD-ROM | disk | FTP | other *** search
- head 1.1;
- access;
- symbols;
- locks
- dglattin:1.1; strict;
- comment @# @;
-
-
- 1.1
- date 92.08.18.04.58.04; author dglattin; state Exp;
- branches;
- next ;
-
-
- desc
- @test code.
- @
-
-
- 1.1
- log
- @Initial revision
- @
- text
- @#include <assert.h>
- #include <stdio.h>
- #include <SubClass1.h>
-
-
- static BOOL flag = NO;
-
-
- @@implementation SubClass1
-
-
- + initialize {
-
- printf( "If you see this message then SubClass1 received a"
- " +initialize method\n" );
- flag = YES;
-
- return self;
- }
-
-
- + newOther {
-
- assert (flag);
- self = [ self new ];
- return self;
- }
-
- - hokeyMethod {
-
-
- return self;
- }
-
-
- - print {
-
-
- printf( "Subclass1 print\n" );
-
- return self;
- }
-
-
- - print:( const char* )aPhrase {
-
-
- printf( "Subclass1 print:%s\n", aPhrase );
-
- return self;
- }
-
-
- + ( int )return12 { return 12; }
- - ( int )return15 { return 15; }
- - ( int )return24 { return 24; }
- - ( int )return33 { return 33; }
-
-
- @@end@
-