A class inherits from one direct superclass with extends (Java has single inheritance of classes), and every class ultimately extends Object. The subclass inherits accessible members and can add new ones or replace inherited behavior. Private members are not inherited in the sense of being accessible, and constructors are never inherited.
Keep reading for free
Create a free StudyToCert account to read the rest of this lesson: 6 more sections, 4 key terms, a real-world example, an exam tip and self-check questions. Every lesson, lab and practice test is free with an account.