Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
shape example
//gcc 5.0.4 #import <Foundation/Foundation.h> @interface Shape :NSObject { NsString *color } -(void)getArea; @end @implementation Shape -(void)getArea { } @end @interface Rectangle : Shape { NsString *color } -(void)getArea; @end @implementation Shape -(void)getArea { } @end int main (int argc, const char * argv[]) { NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init]; NSLog (@"Hello, World!"); [pool drain]; return 0; }
run
|
edit
|
history
|
help
0
arary
string divison
bookinheritence
string type cast
simple inheritance in objective c
primitive datatypes objective c
acquire-lock
NSMutable Chirag
Interface implementation
string mutable