inheritance
Also written: inherit, inherits
A class taking on another class's members with extends. A Drink inherits MenuItem's name and cents.
Also written: inherit, inherits
A class taking on another class's members with extends. A Drink inherits MenuItem's name and cents.