Solved

Which of the Following Is True Regarding Subclasses

Question 35

Multiple Choice

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.

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions

Unlock this Answer For Free Now!

View this answer and more for free by performing one of the following actions

qr-code

Scan the QR code to install the App and get 2 free unlocks

upload documents

Unlock quizzes for free by uploading documents