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
Post a Comment