home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Nebula 1995 August
/
NEBULA.mdf
/
SourceCode
/
AlexNeXTSTEPSource
/
Source
/
Chapter3_OOD
/
ShapeArea
/
Rectangle.m
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
Text File
|
1993-02-26
|
229 b
|
24 lines
#import "Rectangle.h"
@implementation Rectangle
-initHeight:(float)h width:(float)w
{
[super init];
height = h;
width = w;
return self;
}
-(float)calcArea
{
return height * width;
}
-free
{
return [super free];
}
@end