this和super

package test;

public class SuperDemo {
    public static void main(String[] args) {
        Boo o=new Boo();
        Coo c=new Coo(29);
        Doo d=new Doo();
    }
}
class Coo{
    Coo(int n){
      n=n+1;
        System.out.println(n);//30
    }
}
class Doo extends Coo{

    Doo() {
        super(25);//调用父类的有参构造  这个就无用了??
    }
}
class Aoo{
    Aoo(){
        System.out.println("超类的构造器");
    }
}
class Boo extends Aoo{
    Boo(){
        super();
        System.out.println("派生类的构造方法");
    }
}

 学会重复,对于资料书上的某些代码写两次,写一次默一次,学会总结成博客,用自己的脑子总结,不要对着抄过来,你以前都学过为什么还是不够透?

super如何直接调用变量?

https://www.runoob.com/w3cnote/the-different-this-super.html