2)Which of the following is true regarding subclasses? a) A subclass that inheri
ID: 3656732 • Letter: 2
Question
2)Which of the following is true regarding subclasses? a) A subclass that inherits methods from its superclass may not override the methods. b) A subclass that inherits instance variables from its superclass may not declare additional instance variables. c) A subclass may inherit methods or instance variables from its superclass but not both. d) A subclass may inherit methods and instance variables from its superclass, and may also implement its own methods and declare its own instance variables.Explanation / Answer
d) A subclass may inherit methods and instance variables from its superclass, and may also implement its own methods and declare its own instance variables.
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.