Java enforces that the call to super (explicit or not) must be the first statement in the constructor. This is to prevent the subclass part of the object being initialized prior to the superclass part of the object being initialized .
Read moreWhere super () can be used within a constructor?
Description. When used in a constructor, the super keyword appears alone and must be used before the this keyword is used . The super keyword can also be used to call functions on a parent object.
Read moreWhere super () can be used within a constructor?
Description. When used in a constructor, the super keyword appears alone and must be used before the this keyword is used . The super keyword can also be used to call functions on a parent object.
Read moreWhere super () can be used within a constructor?
Description. When used in a constructor, the super keyword appears alone and must be used before the this keyword is used . The super keyword can also be used to call functions on a parent object.
Read more