Unit 9 Inheritance
student led lesson notes + homework
Inheritance
- different classes can have methods and attributes unique to them
- extends can inherit the same methods and attributes and also some unique to themselves
Superclass
- parent class
- contains the basic attributes
Subclass
- attributes of subclass same as superclass if nothing changed
- add additional assignment if new
- use super to access the superclass constructor with subclass