I try Apache Wicket. This framework override abstract methods in java constructor.
Example:
public abstract class BasePage extends WebPage {
...
this.add(new Link<Void>("logout") {
@Override
public void onClick() {
...
}
});
}
I know it is possible to declare Class A whith abstract method my_method and declare Class B extends Class A and define real code for abstract method my_method in class B.
But I don't know any mechanism in Java to override an abstract method in constructor dynamically like in wicket.
How call these Java technology and where I can find a detailed technical specification of it?