-2
class Football {
    private String mfootballerName; 
    private int mkiitNumber;
    private String mfootballTeam;

    public String getfootballerName() {        
        return mfootballerName;
    }

    public int kitNumber() { 
        return mKitNumber;
    }

    public String footballTeam() { 
          return mfootballTeam;
    }
}
hnefatl
  • 5,860
  • 2
  • 27
  • 49
Tbizz
  • 21
  • 4

1 Answers1

1

Simple typo, you've mistyped your private int mkiitNumber as mKitNumber (or the other way around, depending on which you actually meant).

Here's the corrected code:

class Football {
    private String mfootballerName; 
    private int mkitNumber;
    private String mfootballTeam;

    public String getfootballerName() {        
        return mfootballerName;
    }

    public int kitNumber() { 
        return mKitNumber;
    }

    public String footballTeam() { 
          return mfootballTeam;
    }
}
hnefatl
  • 5,860
  • 2
  • 27
  • 49
Trevor Sears
  • 459
  • 8
  • 24