In a subclass constructor, the super keyword must be called before accessing _______.

  • parent properties
  • child properties
  • subclass properties
  • constructor properties
In a subclass constructor, the super keyword must be called before accessing parent properties. This is because the super keyword refers to the parent class, and it needs to be invoked first to ensure that the parent's properties are properly initialized before accessing them in the subclass.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *