Java getting an error for implementing interface method with weaker access

Methods declared inside interface are implicitly public. And all variables declared in the interface are implicitly public static final (constants).

public String getGait() {
  return " mph, lope";
}

Leave a Comment