Folkert Meeuw wrote:
The syntax for calling a superclass constructor is
With super(), the superclass no-argument constructor is called. With super(parameter list), the superclass constructor with a matching parameter list is called.
Is super. in this case the equal use like this. ?
First thing... the code that you have randomly put here.... did you ever try it on your own.... it has infinite errors..... the super.d won't work as d is private in A, and is there any new style of writing methods where in they return in the argument list itself which I'm nor aware of ? in your case public int getD(return d);
ok mistakes apart.... this can be used for calling methods,constructor or to refer members of own class..... while super can be used for calling methods,constructor or to refer members of parent class of course if they are visible to child class.