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
Simple Arithmetic Operations in Objective C
string
NSSet(Create,Enumrate,Compare,Checking,Combine)
Inheritance Example
NSMutable Example
Class implementation
Interface implementation
array
Book NSSet
nsset