I know I can create an anonymous class when manually creating an instance of it like this:
ClassName c = new ClassName() {
public void overridenMethod() { method body }
}
Some classes, however, use builder pattern to create a new instance. My question is whether there is a trick that would allow me to create an anonymous class using the builder provided by its superclass.