variables - Why compilation fails? [Java] -


interface rideable {      string getgait();  }  public class camel implements rideable {      string getgait() { return " mph, lope"; }  } 

why compilation fail? don't know why compile error?

by default modifier interface's method public. when implement it. need public. add public getgait method should resolve it


Comments

Popular posts from this blog

java - nested exception is org.hibernate.exception.SQLGrammarException: could not extract ResultSet Hibernate+SpringMVC -

sql - Postgresql tables exists, but getting "relation does not exist" when querying -

asp.net mvc - breakpoint on javascript in CSHTML? -