Abstract is the opposite of final.
A final class, for example, may not be subclassed; an abstract class must be subclassed.
interface MyInterface {
public void method1();
public void method2();
}
class MyClass implements MyInterface {
public void method1() {
}
}
The type MyClass must implement the inherited abstract method MyInterface.method2()
|