About child classes inheriting from the parent class constructor:
- The subclass must call the constructor of the parent class. The parameterless constructor of the parent class is automatically called by default. If the parent class does not have a parameterless constructor, you must explicitly call a constructor with super ().
- When you create an object, the constructor of the parent class is called before the object is initialized, and then the subclass's own constructor is called
- A subclass inherits only the default (no argument) constructor of the parent class (which is, in fact, the default call), and if the parent overrides its own constructor, it causes the parent class to have no parameterless constructors, so that the class cannot inherit the constructor from the parent class.
Inheritance of constructors--subclasses do not inherit the constructor of the parent class, they can only invoke the