Another essential use of the function super() is to call the initializer of the parent class from inside the initializer of the child class.
Note: It is not necessary that the call to super() in a method or an initializer is made in the first line of the method.
Below is an example of using super() in an initializer inside the child class.
Initializers are called when an object of a class is created. See the example below: