HELP: Java Project Language Families - override method

I am trying to debug my code but I keep getting errors related to this section, specifically the overriding method. Any suggestions?

class Mayan extends Language {

  Mayan(String languageName, int speakers) {
    super(languageName, speakers, "Central America", "verb-object-subject");


  @Override
  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 + ".");
        System.println("Fun fact: " + this.name + " is an ergative language.");
        
      }

looks to me like you forgot to close your constructor (missing })

This is just repeating what I already said?

You’re missing out on this line.


In case you’re interested in a breakdown of System.out.println():

1 Like

This is what my code looks like, yet I’m getting an error about a “;” expected on my getInfo() method. I don’t have the slightest clue what it’s referring to

Welcome to the forums, can you post the error message you received?

As noted earlier in the thread,

class Mayan extends Language {

  Mayan(String languageName, int speakers) {
    super(languageName, speakers, "Central America", "verb-object-subject");
} // <---- This is missing

  @Override
  public void getInfo() {