Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8605533
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T02:51:25+00:00 2026-06-12T02:51:25+00:00

I am just new on Objective-C , well i have not get in to

  • 0

I am just new on Objective-C , well i have not get in to cocoa touch library yet, but i am try to follow Objective-C book and write some classes for get in more practice .

I have a error in Implementation statement , could you tell me which part that i made mistake ?

#import "getterSetter.h"

@implementation getterSetter

@synthesize airportName;

- (char) print : (char) name 
{
    return name;
}

- (int) zip : (int) zipair
{
    return zipair;
}
@end


int main(int argc,char *argv[])
{
    char *airportName;
    getterSetter *airport = [[getterSetter alloc]init];

    NSLog(@"Please enter the airport name:\n");
    scanf("%c",&airportName);

    NSLog(@"Please enter the airport name:\n");
    scanf("%c",&airportName);    

    NSLog(@"Your Airport Name is :\n");
    [airport print:*airportName];
}
#import <Foundation/Foundation.h>

@interface getterSetter : NSObject
{
    char *airportName;
    int zipCode;
    char *airportCityName;
}

- (char) print : (char) name;

- (int) zip;

@property char *airportName;

@end
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T02:51:27+00:00Added an answer on June 12, 2026 at 2:51 am

    In getterSetter.h, you declare a method

    - (int) zip;
    

    but in the .m file you implement

    - (int) zip : (int) zipair
    

    That is a different method, therefore the compiler complains about the missing implementation of - (int) zip.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm new to objective C and I just wanted to get a general clarification
I'm very new to Objective-C and have just made my first app from scratch.
Hey, I'm new to Objective-C and as well as programming with Cocoa at all..
I'm still quite new to Objective C and Xcode, but I just finished a
I am just new to programming in Unix and have a small issue that
I am just new in MVC 3. I have a html view which contain
So i have just set new Error Handlers in httpd.conf for custom error pages:
I am writing a simple console application in Objective-C but I have heard that
I have a brand new Objective-C class called test . The test class has
I'm new to objective-c and have been wondering what's the point of creating properties?

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.