Lesson 825 of 1524
Inheritance
Inheritance describes an is-a relationship between classes.
Practice this chapterInheritance describes an is-a relationship between classes. One class, the subclass, inherits from another class, the superclass
Subclasses can access inherited attributes and methods directly
Be able to identify is-a and has-a relationships between classes; write a subclass's __init__() that inherits superclass instance attributes and creates new instance attributes; write overridden methods to change behavior of inherited methods.
Worked example
What does this chapter state?
- 1Inheritance describes an is-a relationship between classes.
- 2That claim is the chapter’s own statement.
- 3Answer from the claim, not from where the chapter sits in the book.
Result: Inheritance describes an is-a relationship between classes.
Why. The sentence is taken from this chapter’s summary or key concepts.
Answer with the meaning this chapter gives. A nearby idea from the same book is a different term.
Practice margin
This chapter
A fresh set from this chapter only. Choose 10 or 20. Multiple choice and fill-in, with no repeat inside the set.