Final (Java): Difference between revisions

Content deleted Content added
Final classes: Methods within a final class declared without final keyword are not final
Rewrote Ok to OK
Line 34:
public class Derived extends Base
{
public void m1() {...} // OkOK, overriding Base#m1()
public void m2() {...} // forbidden