Project Language Families - Stuck at step 8

Hi,

I am getting stucked on the language families proiect:
https://www.codecademy.com/courses/learn-java/projects/java-language-families

Please see below my codes:

Language.java:

class Language {
protected String name;
protected int numSpeakers;
protected String regionsSpoken;
protected String wordOrder;

public Language(String name, int numSpeakers, String regionsSpoken, String wordOrder) {
this.name = name;
this.numSpeakers = numSpeakers;
this.regionsSpoken = regionsSpoken;
this.wordOrder = wordOrder;
}

public void getInfo() {
System.out.println(this.name + " is spoken by " + this.numSpeakers + " people mainly in " + this.regionsSpoken + “.”);
System.out.println("The language follows the word order: " + this.wordOrder + “.”);
}

public static void main(String args) {
Language spanish = new Language(“Spanish”, 19405915, “Spain”, “Subject-verb-Order”);
spanish.getInfo();

Mayan kiche = new Mayan(“Ki’che’”, 230234124);
kiche.getInfo();
}

}

Mayan.java:

class Mayan extends Language {

public Mayan(String languageName, int speakers) {
super(languageName, speakers, “Central America”, “verb-object-subject”);
this.languageName = name;
this.speakers = numSpeakers;

@Override
public void getInfo() {
System.out.println(this.languagename + "is spoken by " + this.Speakers + " people mainly in " + this.regionsSpoken + “.”);
System.out.println("The language follows the word order: " + this.wordOrder);
System.out.println(“Fun fact: " + this.languageName + " is an ergative language.”);
}
}

}

I think the issues lay in your Mayan constructor and getInfo() function.

These two lines of code in your constructor aren’t necessary. But you can have them if you tweak it. " this. " shouldn’t be used, this informs java to look for an instance variable called “language.name”. So remove “.this”.

I’ve highlighted the issues in this. What you’re calling doesn’t have any values assigned to them. You should replace them with the Instance variables you created in Language.java. Like you’ve done with the rest.

so, this.languageName , should be this.name.

Hopefully What I’ve said helps and I haven’t said anything wrong myself :rofl: