I'm fine with Java, C++ and other languages but I'm absolutely new to Objective-C. I've been poking around with several tutorials but I can't seem to get the following code right. Can anyone help? Thanks.
#include <stdio.h>
#include <Foundation/Foundation.h>
@interface Employee
{
id name = [NSString string];
int social;
}
@property id name;
@property int social;
+ (void)displayListOfEmployees;
- (void)displayEmployee;
@end
@interface FullTimeEmployee : Employee
{
float salary;
}
- (float)changeSalary

BOOL)up by

float)percent;
@end
#import "main.h"
@implementation Employee
+ (void)displayListOfEmployees
{
printf("This is a list of all employees\n");
}
- (void)displayEmployee
{
printf("%s %d\n", name, social);
}
@synthesize name;
@synthesize social;
@end
@implementation FullTimeEmployee : Employee
- (float)changeSalary

BOOL)up by

float)percent
{
float temp;
if (up) {
temp = salary * (1.0 + percent);
} else {
temp = salary * (1.0 - percent);
}
return temp;
}
@end
int main(int argc, char *argv[])
{
id employee;
employee = [FullTimeEmployee new];
[FullTimeEmployee displayListOfEmployees];
employee.name = @"Barry";
employee.social = 1234567890];
[employee displayEmployee];
[employee free];
return EXIT_SUCCESS;
}