java super class constructor (manohar academy)

Опубликовано: 24 Апрель 2026
на канале: ManoharAcademy
226
2

In this lesson we learn about super class constructors.

In every constructor on the first line we should either call other constructor in the same class or one of the super class constructor. If this condition is not satisfied then the compiler will insert a call to super class default constructor.

If the super class does not have default constructor then sub-classes should define their constructors explicitly and call other constructor in the sub class or one of existing super class explicitly on first line.

visit my website : http://manoharacademy.com

java fundamentals : https://goo.gl/iN5oLb
java arrays : https://goo.gl/v2LUpf
java class design : https://goo.gl/IQbfRk
java inheritance : https://goo.gl/l1wDOO