super Keyword -2
This section covers using super keyword to call the parent class constructor
Section 1.1
Whenever you call a child class constructor , there is an implicit call to the parent class constructor . Generally without any modification , the default/ no-argument constructor of the parent class get executed
Section 1.2
You can pass argument inside the parent class constructor via passing an argument
inside "super( )"
Section 1.3
You can pass an argument inside the child class constructor , and that argument can be passed into the parent class constructor
Section 2.1
Section 2.2
Section 2.3
Section 3.1
Section 3.2
Last updated
Was this helpful?