Creates (mounted); creates (mounted); creates (mounted); creates (mounted);
public class Test1 { public static void main(String[] args) { Father a = new A(); a.p3(); } } abstract class Father{ abstract void p1(); abstract void p2(); void p3(){ p1(); p2(); } } class A extends Father{ @Override void p1() { System.out.println("created"); } @Override void p2() { System.out.println("mounted"); }}Copy the code