hi Folks this is jagadeesh, im beginner of this platform while practicing application with reference some books, My Application Running Suceessfully but No output display in the Console here is my Application #import
@interface ClassA : NSObject
{
int x;
}
-(void) initVar;
@end
@implementation ClassA
-(void) initVar
{
x = 100;
}
@end
@interface ClassB : ClassA
{
int y;
}
-(void) initVar;
-(void) printVar;
@end
@implementation ClassB
-(void) initVar
{
x = 200;
y = 300;
}
- (void) printVar
{
NSLog(@"x= %i", x );
NSLog(@"y= %i", y);
}
@end
int main (int argc, const char * argv[]) {
NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
ClassB *b = [[ClassB alloc] init];
[b initVar];
[b printVar];
[b release];
[pool drain];
return 0;
}
and the **console information is look like this** Program loaded. run [Switching to process 1310 local thread 0x2e03] Running… (gdb)