I have an abstract class which has abstract methods. All methods are public. I don't need them to be public, so I tried to remove public or put private. But it keeps saying
Compilation error: AbstractClassHtml: Method does not override an ancestor method: String rr()
public abstract class AbstractClassBase {
public abstract String tt();
private abstract String rr();
}
public class AbstractClassHtml extends AbstractClassBase {
public override String tt() {
return rr();
}
private override String rr() { // error goes here: Compilation error: AbstractClassHtml: Method does not override an ancestor method: String rr()
return 'HTML';
}
}
What am I doing wrong?