Ask Question

Which of the following is true? a) A subclass inherits methods from its superclass but not instance variables. b) A subclass inherits instance variables from its superclass but not methods. c) A subclass inherits methods and instance variables from its superclass. d) A subclass does not inherit methods or instance variables from its superclass.

+3
Answers (1)
  1. 13 June, 05:09
    0
    c) A subclass inherits methods and instance variables from its super class.

    Explanation:

    A subclass is the class that is based on the secondary or a sub-levels of the class and is arranged in as taxonomy order of events and a subclass inherited all the members of the methods. And the nested as a class and the constructors are not a member and this re not inherited by the subclass but the constructors can involved form the subclass.
Know the Answer?
Not Sure About the Answer?
Find an answer to your question 👍 “Which of the following is true? a) A subclass inherits methods from its superclass but not instance variables. b) A subclass inherits ...” in 📗 Social Studies 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