Question: Mark all that are true about a superclass and its subclass Group of answer choices A subclass can add new attributes to the superclass but
Mark all that are true about a superclass and its subclass
Group of answer choices
A subclass can add new attributes to the superclass but cannot add new methods.
A superclass can have multiple subclasses
A subclass inherits public fields and methods from a superclass, and a superclass inherits public fields and methods from a subclass as well.
A subclass can override existing methods from the superclass with newer versions of those methods.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
