Ask Question

What is true about using the reserved word super?

It can only be used in a class that contains an extends clause

It can only be used in a constructor

It can only be used in subclasses

It can only be used in superclasses

+4
Answers (1)
  1. 14 May, 17:14
    0
    It can only be used in superclasses

    Explanation:

    In computer language, a reserved word is a word that cannot be used as an identifier, such as the name of a variable, function, or label, it is "reserved from use".

    If your method overrides one of its superclass's methods, you can invoke the overridden method through the use of the keyword super, it can also be used to refer to a hidden field.

    We can conclude that the correct answer is "It can only be used in superclasses" because, in a subclass' constructor, we can call the superclass' constructor with the keyword super instead of the superclass' (constructor's) name.

    I hope you find this information useful and interesting! Good luck!
Know the Answer?
Not Sure About the Answer?
Find an answer to your question 👍 “What is true about using the reserved word super? It can only be used in a class that contains an extends clause It can only be used in a ...” in 📗 Computers & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers