Can u explain why does N() call M()
Whenever a constructor is called,it automatically calls its superclass constructor to finish the process of completing the creation of the object.
We can call it explicility by specifying super()(which makes call to the superclass constructor) otherwise JVM will call implicility.
Note:super() if present,should be the first line inside the constructor.