super.a = b instead of super(b)

I’m learning the super keyword and accidentally get this, here’s an example : public class A { double a; public A (double a) { this.a = a; } } public class B …

Java: Calling a super method which calls an overridden method

public class SuperClass { public void method1() { System.out.println(“superclass method1”); this.method2(); } public void method2() { System.out.println(“…