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.

Respuesta :

Answer:

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.