public class AbstractMethodTest extends AbstractClass{
public Class getPOType() {
return this.getClass();
}
public static void main(String[] args) {
System.out.println(new AbstractMethodTest().getFromString());
}
}
public abstract class AbstractClass implements MyInterface{
protected final String getFromString() {
    return new StringBuilder().append("from ").append(getPOType().getName()).toString();
  }
}
public interface MyInterface {
public Class getPOType();
}我想问一下这个代码是否有用到设计模式,如果有请说下是什么设计模式。