title: a simple person class in objective c
body: <p>I'm starting to learn objective c, I made a simple person class, i get 6 errors,
  expected specifier-qualifier-list before '-' token</p>
  
  <p>just wondering if someone can explain to me what I'm doing wrong,</p>
  
  <p>thanks </p>
  
  <pre><code>#import &lt;Foundation/Foundation.h&gt;
  #import &lt;Foundation/NSObject.h&gt;
  #import &lt;Foundation/NSString.h&gt;
  
  
  @interface Person:NSObject
  {
      NSString *firstName;
      NSString *lastName;
  
  
      -(void) setFName:(NSString *) theFirstName;
      -(void) setLName:(NSString *) theLastName;
      -(void) printName;
  }
  @end
  
  @implementation Person
  {
  
      -(void) setFName:(NSString *) theFirstName
      {
          firstName = [[NSString alloc]initWithString: theFirstName];
      }
  
      -(void) setLName:(NSString *) theLastName
      {
          lastName = [[NSString alloc]initWithString: theLastName];
      }
  
      -(void) printName
      {
          NSLog(@"The person's full name is",firstName,lastName);
      }
  
  }
  
  @end
  
  
  int main (int argc, const char * argv[]) {
      NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
  
      Person *person = [[Person alloc] init];
  
      [person setFName:@"Amir"];
      [person setLName:@"Karimian"];
      [person printName];
  
      [person release];
      [pool drain];
      return 0;
  }
  </code></pre>