INHERITS and SUPER.NEW
Level 8: Classes. A subclass reuses the parent. SUPER.NEW(...) runs the parent constructor. The subclass then sets its own fields.
- Previous: PRIVATE is enforced
- Next: Call a method in a loop
- AS & A Level Path
Level 8: Classes. A subclass reuses the parent. SUPER.NEW(...) runs the parent constructor. The subclass then sets its own fields.